Re: [R] Using intervals() function for nlme model - Statistics Lab ETHZ

2024-05-06 Thread Ivan Krylov via R-help
Dear Tatiana, Marvin & Paul, If you don't get a better answer here, try r-sig-mixed-mod...@r-project.org. On Fri, 3 May 2024 11:29:19 + "Bielakova Tatiana" wrote: > Based on the documentation of nlme package, the function interval is > supported for gls, lme, and lmList classes. Although

Re: [R] Get a copy of a matrix only for TRUE entries of a matching size boolean matrix?

2024-05-06 Thread Martin Maechler
> DynV Montrealer > on Fri, 3 May 2024 10:39:10 -0400 writes: > It's exactly what I was looking for, thanks. I'm replying > to the whole list so others can skip this question, to not > waste time on it. good. > Bonne fin de journée de Montréal (nous sommes le matin

Re: [R] [R-sig-ME] lmer error: number of observations <= number of random effects

2024-05-06 Thread TT FF
See if this paper may help If it helps reducing the model when you have few observations. the (1|ID) may increase the type 1 error. https://journals.sagepub.com/doi/10.1177/25152459231214454 Best > On 6 May 2024, at 07:45, Thierry

[R] lmer error: number of observations <= number of random effects

2024-05-06 Thread Srinidhi Jayakumar via R-help
I am running a multilevel growth curve model to examine predictors of social anhedonia (SA) trajectory through ages 12, 15 and 18. SA is a continuous numeric variable. The age variable (Index1) has been coded as 0 for age 12, 1 for age 15 and 2 for age 18. I am currently using a time varying

Re: [R] [R-sig-ME] lmer error: number of observations <= number of random effects

2024-05-06 Thread Thierry Onkelinx via R-help
Dear Srinidhi, You are trying to fit 1 random intercept and 2 random slopes per individual, while you have at most 3 observations per individual. You simply don't have enough data to fit the random slopes. Reduce the random part to (1|ID). Best regards, Thierry ir. Thierry Onkelinx Statisticus