search for: regpvalues

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

Did you mean: reg_values
2011 Sep 19
1
regression summary results pvalues and coefficients into a excel
...6001, 0.563605, 0.637906, 0.578099, 0.588142, 0.383393, 0.561732, 0.456134, 0.430472, 0.603143, 0.514315, 0.53328, 0.482734, 0.637906) 3) morphtrait <- headshape aof<-function(x){m<-data.frame(morphtrait,x); summary(lm(morphtrait~x, m))} 4) regressionresults <-apply(sdata, 1, aof) 5) regpvalues <- data.frame(lapply(regressionresults, function(x){x["Pr(>|t|)"][1:2,]})) 6) write.table(t(regpvalues), file = "regression-resultsheadshape.txt", quote = F, sep ='\t') > regressionresults $CUST_54_PI410671829 Call: lm(formula = morphtrait ~ x, data = m)...