Guest User

Untitled

a guest
Oct 18th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. lme(value ~ time * testtype, random = ~ 1 | subject, data = df, na.action = na.omit)
  2.  
  3. fm <- lme(value ~ 0 + testtype + testtype:type, data = df, na.action = na.omit,
  4. random = ~ 0 + testtype + testtype:type | subject,
  5. weights = varIdent(form = ~ 1 | testtype))
  6.  
  7. summary(fm)
  8.  
  9. V <- getVarCov(fm, type = "marginal", individual = 1)
  10. R <- cov2cor(V[[1]])
  11. R
Add Comment
Please, Sign In to add comment