Slightly off topic, but related :-) [Design Issues]

posted by ElMaestro  – Belgium?, 2019-12-08 01:31 (325 d 18:51 ago) – Posting: # 20961
Views: 3,402

Hi all,

» » Correct. If we would be allowed (pun!) to use a mixed-effects model. Patterson and Jones argued against this doubtful practice and the ethical implications of discarding data.
» Really, there is no problem in mixed model approach to use all data if model constructed correctly.

But would we really need a mixed model ??
I seem to recall a thread about it some time ago. I believe the normal linear model fits without trouble to a 222BE dataset with a missing period, so why would it be necessary to use a mixed model for that situation at all?
As I recall it mixed model done with ML are proven to give unbiased estimates, but it has never been proven that REML fits are unbiased (and REML is generally used in BE, whenever a discussion of the mixed model comes into play), hence I can't imagine that bias would be a reason for picking the mixed model over a linear model when we have a simple missing period situation?!? Am curious to learn more about this.

Here's an example in R:

logCmax=rnorm(10,6, 2)
Seq=c("AB", "AB", "BA", "BA", "AB", "AB", "BA","BA", "BA", "BA")
Per=c(rep(c(1,2), 5))
Trt=substr(Seq, Per, Per)
X=data.frame(Subj, Per, Trt, Seq, logCmax)
M1=lm(logCmax ~ factor(Seq)+factor(Subj)+factor(Trt)+factor(Per), data=X)
lsmeans(M1, "Trt")
confint(pairs(lsmeans(M1, "Trt"), reverse =F), level=0.9)

Xm=X[-7,] ##let's delete a period
M2=lm(logCmax ~ factor(Seq)+factor(Subj)+factor(Trt)+factor(Per), data=Xm)
lsmeans(M2, "Trt")
confint(pairs(lsmeans(M2, "Trt"), reverse =F), level=0.9)

Note e.g. that the two fits have different residuals and residual df's, which to me means incomplete subjects are not deleted (R does not know and is not being told something is incomplete; the full rank design matrix is still invertible and so on).
Many thanks for any light you can shed onto this.

Edit: I added set.seed(123456) to your code in order to get reproducible results. [Helmut]

I could be wrong, but...

Best regards,

No, of course you do not need to audit your CRO if it was inspected in 1968 by the agency of Crabongostan.

Complete thread:

 Admin contact
21,179 posts in 4,414 threads, 1,474 registered users;
online 3 (0 registered, 3 guests [including 3 identified bots]).
Forum time: Wednesday 20:22 CET (Europe/Vienna)

Actually, science starts to become interesting
only where it ends.    Justus von Liebig

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