Hi, I have following kind of model : Y = X1 * a1 + X2 * a2 + error

Here sampled data for Y, X1, X2 are like that :

Y <- replicate(10, matrix(rnorm(2),2), simplify = F)
X1 <- replicate(10, matrix(rnorm(4),2), simplify = F)
X2 <- replicate(10, matrix(rnorm(4),2), simplify = F)

My goal is to calculate LS estimates of vectors "a1" and "a2". Can anyone
please guide me how to do that in R? Is there any special function to handle
this kind of problem?

Thanks
-- 
View this message in context: 
http://www.nabble.com/%22Special%22-LS-estimation-problem-tp25083103p25083103.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org 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.

Reply via email to