lmer / lme [General Sta­tis­tics]

posted by Helmut Homepage – Vienna, Austria, 2019-12-25 19:12 2a02:8388:6bc2:ce80:552e:a3d:1481:65d7 – Posting: # 21030
Views: 582

Hi Nastia,

» I still struggle to understand what is the difference between lmer and lme in this case...

The syntax of the formula for random effects is different.

mod <- lmer(logPK  ~ sequence + period + treatment +
                     (1|subject),
                     data = data)
mod <- lme(log(PK) ~ sequence + period + treatment,
                     random = ~1|subject,
                     data = data, na.action = na.omit)

Important: If you have incomplete data, in lme() you have to use na.action = na.omit because the default na.action = na.fail would stop and throw an error.

The method to extract the PE and calculate the CI is also different. Hint: Lines 53–56 and 80–84 of the source-code of method.B.R.

Cheers,
Helmut Schütz
[image]

The quality of responses received is directly proportional to the quality of the question asked. 🚮
Science Quotes

Complete thread:

Activity
 Admin contact
20,250 posts in 4,262 threads, 1,398 registered users;
online 20 (0 registered, 20 guests [including 10 identified bots]).
Forum time (Europe/Vienna): 06:56 CET

No written law has ever been more binding than
unwritten custom supported by popular opinion.    Carrie Chapman Catt

The Bioequivalence and Bioavailability Forum is hosted by
BEBAC Ing. Helmut Schütz
HTML5