Mixed models, did someone figure out lme? [🇷 for BE/BA]
Hi all,
Oh, how life throws you a curve ball every now and then....
As you know I am writing optimisers and algos for REML fits for replicated and semireplicated BE designs.
For replicated (2x2x4) I'd like to have something to compare with. As I am neither rich nor well connected I can't get access to SAS or WinNonlin, but lucky me, there are free packages and functions in R for mixed models.
I gather
Is lme the most hostile and poorly documented function ever in existence??
I have no idea how to use it after having read the docs approximately 50 million times; all I want is to fit a model with five variance components:
Within Ref, within Test, between Ref, between Test, and their covariance.
I once had the book by Pinheiro & Bates and it is a terrible document for anyone trying to get familiar with mixed models. I think it went into the burner a cold November night 10 years ago. You need to know and understand all structures and syntax examples before anything in that book makes sense. So nothing makes sense to me, obviously. A bit like real life, you might say.
So, I was thinking the bebac forum must come to my rescue and I read with equal amounts of joy and equal amounts of horror this old post written by one of the greatest of the truly great.
Does it really have to be that hard??
I googled around but I have not really seen much about lme for BE. Where do I start, does anyone have suggestions on how to use lme for a 224BE design and be able to extract meaningful variance components? Did anyone since then figure out easier and possibly more meaningful ways to work with lme such that the model is clearly defined in an understandable way and such that extraction of swr and swt is not plain meaningless torture?
Mixed models are no good for my mental health.
Many thanks.
Oh, how life throws you a curve ball every now and then....
As you know I am writing optimisers and algos for REML fits for replicated and semireplicated BE designs.
For replicated (2x2x4) I'd like to have something to compare with. As I am neither rich nor well connected I can't get access to SAS or WinNonlin, but lucky me, there are free packages and functions in R for mixed models.
I gather
lmer
does not allow for different within-variances, so I am looking at lme
.Is lme the most hostile and poorly documented function ever in existence??
I have no idea how to use it after having read the docs approximately 50 million times; all I want is to fit a model with five variance components:
Within Ref, within Test, between Ref, between Test, and their covariance.
I once had the book by Pinheiro & Bates and it is a terrible document for anyone trying to get familiar with mixed models. I think it went into the burner a cold November night 10 years ago. You need to know and understand all structures and syntax examples before anything in that book makes sense. So nothing makes sense to me, obviously. A bit like real life, you might say.
So, I was thinking the bebac forum must come to my rescue and I read with equal amounts of joy and equal amounts of horror this old post written by one of the greatest of the truly great.
Does it really have to be that hard??
I googled around but I have not really seen much about lme for BE. Where do I start, does anyone have suggestions on how to use lme for a 224BE design and be able to extract meaningful variance components? Did anyone since then figure out easier and possibly more meaningful ways to work with lme such that the model is clearly defined in an understandable way and such that extraction of swr and swt is not plain meaningless torture?
Mixed models are no good for my mental health.
Many thanks.
—
Pass or fail!
ElMaestro
Pass or fail!
ElMaestro
Complete thread:
- Mixed models, did someone figure out lme?ElMaestro 2020-08-10 14:16 [🇷 for BE/BA]
- Mixed models, did someone figure out lme? PharmCat 2020-08-10 22:19
- Mixed models, did someone figure out lme? d_labes 2020-08-11 13:20
- Mixed models, did someone figure out lme? ElMaestro 2020-08-11 14:42
- Mixed models, did someone figure out lme? d_labes 2020-08-11 18:23
- Mixed models, did someone figure out lme? ElMaestro 2020-08-12 09:38
- Mixed models, did someone figure out lme? d_labes 2020-08-11 18:23
- Mixed models, did someone figure out lme? ElMaestro 2020-08-11 14:42