r - standard error of outcome in lm and lme -


i have following linear models

library(nlme) fm2 <- lme(distance ~ age + sex, data = orthodont, random = ~ 1) fm2.lm <- lm(distance ~ age + sex,data = orthodont) 

how can obtain standard error of distance age , sex?

for fm2 (linear mixed model), can do

sqrt(diag(summary(fm2)$varfix)) #(intercept)         age   sexfemale  # 0.83392247  0.06160592  0.76141685  

for fm2.lm (linear model), can do

summary(fm2.lm)$coefficients[, "std. error"] #(intercept)         age   sexfemale  # 1.11220946  0.09775895  0.44488623  

Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -