[R] regression

ufuk beyaztas ufukbeyaztas at gmail.com
Wed Dec 22 22:57:15 CET 2010


Hi dear all,

suppose that s is a statistic code;

i have a matrix (x) which has 7 columns (1=x1,2=x23=x3,4=x4,5=x5,6=x6
and7=y)
and has 20 rows. i want to do linear reggression like 
reg<-lm(x[,7]~1+x[,1]+x[,2]+.......+x[,6])
but i want to do delete i th row for nrows times and create regression model
like above and compute each models'   "s" statistics and list them. but i
could not do. i always get only one model and statistic. 
How can i do this

Thanks any idea!
-- 
View this message in context: http://r.789695.n4.nabble.com/regression-tp3161328p3161328.html
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list