search for: tp24468326p24470213

Displaying 1 result from an estimated 1 matches for "tp24468326p24470213".

2009 Jul 13
1
regression with replication
Dear all, I would like to fit a linear regression with replication (on each year, observation is replicated, e.g 4 times). The independent variable ranges for instance 1-5 year, so I expect to have a linear fit of 5 points. For that purpose I do these (with dummy variables x and y): x<-rep(seq(1:5),4) y<-rnorm(20) linreg<-lm(y~x) fitted.values(linreg) # why produce 20 points of