Skip to content
Prev 16002 / 20628 Next

Diagonal covariance matrix of random effects when using natural splines in lme4

lme4 does not split the random effects after columns, but after terms and
ns(Days, df = 3) forms a single term.

A workaround would be to compute the basis of the spline manually, add it
to the data frame as separate columns, and then write them explicitely into
the model formula.

2017-11-28 17:39 GMT+01:00 xavier piulachs <xavierpiulachs at hotmail.com>:

  
  
Message-ID: <CAGoSky9ht6itJQNNRzT2-Z9s3EU58p1-FgCYzxEQ_e_jxJmogA@mail.gmail.com>
In-Reply-To: <HE1PR10MB167641FAEFE9E1149FE7FE26C73A0@HE1PR10MB1676.EURPRD10.PROD.OUTLOOK.COM>