Skip to content
Prev 18484 / 20628 Next

lme approximation method for dfs

Dear Sala,

I *think* the containment method that is mentioned in the "Models
supported by emmeans" vignette is something similar to the containment
degrees of freedom approximation in SAS [1] but if you want to use
this method, you should ask the author of emmeans (Russell Lenth) to
make sure that my guess is correct.

I guess your emmeans() call throws an error because you are missing
the "specs" argument which specifies the predictor variables over
which the estimated marginal means should be calculated. Also, the
last argument is "sigmaAdjust" instead of "adjustSigma" but it
defaults to TRUE anyway. This should work (if the emmeans package is
loaded, otherwise use emmeans:emmeans()):
emmeans(lme_fit, ~ Group * TIME, mode = "appx-satterthwaite",
sigmaAdjust = TRUE)

The function joint_tests() which constructs Type-III-ANOVA-like tables
of all predictors and the function contrast() could be useful for your
analysis, too. See also the nice vignettes here [2].

[1]  https://documentation.sas.com/?docsetId=statug&docsetTarget=statug_glimmix_details38.htm&docsetVersion=15.1&locale=en
[2]  https://cran.r-project.org/web/packages/emmeans/vignettes/

Best,
Maarten


On Sun, May 24, 2020 at 4:55 AM Salahadin Lotfi
<salahadin.lotfi at gmail.com> wrote:
Message-ID: <CAHr4Dye26Ru6+zwk7MUGoAtTGpy7bMg7LX6N0J+ZchgtZZnBBQ@mail.gmail.com>
In-Reply-To: <cf770a5d8e494b9b9520a3b9d81dfb5b@MSX-L104.msx.ad.zih.tu-dresden.de>