search for: all_model_run

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

Did you mean: all_model_runs
2011 Aug 15
2
Extracting information from lm results (multiple model runs)
...#create empty list > > mod <- list() > > #perfrom n-model runs for lm > > for(i in 1:10) { > > mod[[paste("run",i,sep="")]] <- lm(Y~X1+X2()) > > } > > > > #define coeficients and how to extract them from lm > > All_Model_runs <- function(lm){ > > out <- c(lm$coefficients[1], > > lm$coefficients[2], > > summary(lm)$coefficients[2,2], > > pf(summary(lm)$fstatistic[1], summary(lm)$fstatistic[2], > > summary(lm)$fstatistic[3], lower.tail = FALSE), >...