search for: lmsum

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

2008 Dec 13
2
weird pasting of ".value" when list is returned
...en trying to figure this out for too long. It doesn't matter when I put the FPVAL in the return statement. It happens regardless of whether it's first or last. Thanks. f.lmmultenhanced <- function(response, pred1, pred2) { regmod <- lm(response ~ pred1 + pred2) lmsum <- summary(regmod) imbcoef<-lmsum$coefficients[2,1] retcoef<-lmsum$coefficients[3,1] imbpval<-lmsum$coefficients[2,4] retpval<-lmsum$coefficients[3,4] Fstat<-lmsum$fstatistic[1] fpval<-pf(Fstat,lmsum$fstatistic[2],lmsum$fstatist...