Hello there,
I am new to using regression in R. I wanted to solve a simple regression
problem where I have 2 equations and 2 unknowns.
So lets say -
y1 = alpha1*A + beta1*B
y2 = alpha2*A + beta2*B
y1 <- runif(100000, 0,1)
y2 <- runif(100000,0,1)
alpha1 <- 0.6
alpha2 <- 0.75
beta1 <- 1-alpha1
beta2 <- 1-apha2
I now want this equation to estimate the values of A and B. Both A and B
are constrained to be between (0,1). I would like to use lm with these
constraints and I am having a little trouble in defining the equations
correctly. Any help would be most appreciated.
Thank you,
Diviya
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.