Skip to content

sigma() for mmrm - what does it exactly do? #362

Discussion options

You must be logged in to vote

Thanks @Generalized for the question - honestly the generic sigma() function was not on our radar so far at all!
I would recommend that for now you implement that yourself manually so you know what is going on. I can see that currently the default method does something for mmrm objects but that is probably not what you want to do for the MMRMs:

library(mmrm)
fit <- mmrm(
  formula = FEV1 ~ RACE + SEX + ARMCD * AVISIT + us(AVISIT | USUBJID),
  data = fev_data
)
sigma(fit)
# 2.537345
methods("sigma")
# sigma.default* sigma.glm*     sigma.gls*     sigma.lme*     sigma.lmList*  sigma.mlm*    
stats:::sigma.default
# function (object, use.fallback = TRUE, ...) 
# sqrt(deviance(object, ...)/(no…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Generalized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants