[R] regression analysis

Silvano Cesar da Costa silvano at uel.br
Wed Jul 25 23:03:01 CEST 2012


I have to do 10,000 linear regression analysis, and the response variable
(RESP) is the same for all independent variables (10,000).

y ~ x[i]

i = 1, ..., 10000

For each analysis must extract the p-value and put them in an orderly

I thought an analysis of the type:

ana  = numeric(10000)
for(i in 1:10000){
 mod = lm(RESP~x[i]
 p-value[i] = summary(mod)$coe[2,4]

Could someone suggest a reading material or any suggestions, I thank you.

Silvano Cesar da Costa

Universidade Estadual de Londrina
Centro de Ciências Exatas
Departamento de Estatística

Fone: (43) 3371-4346

More information about the R-help mailing list