[R-sig-ME] whether the data can include participants compelete the questionnaire on only one accasion
bbo|ker @end|ng |rom gm@||@com
Tue Jun 7 01:30:46 CEST 2022
This is theoretically possible.
For some degree of sparsity (i.e. a small enough fraction of
participants with >1 observation) it will become computationally
impractical/not worth the trouble.
I would go ahead and try it out on your data. Ideally you would try
it out on some synthetic data, for example something like:
subject <- rep(1:100, times = rep(1:2, each = 50))
x <- rnorm(length(subject))
dd <- data.frame(x, subject)
dd$y <- simulate(~ x + (1|subject),
newdata = dd,
newparams = list(beta = c(1,2), theta = 1, sigma = 1),
family = gaussian)[]
lmer(y ~ x + (1|subject), family = gaussian, data = dd)
(try something that matches your experimental/observational design
On 2022-06-06 2:56 a.m., Yanmin Wang wrote:
> it is known that linear mixed model is suitable for repeated measure. my longitudinal data is unbalanced, and many participants compelete the questionnaire on only one accasion. can i include these participants?
> any help is appeciated!
> This email and any files with it are confidential and intended solely for the use of the recipient to whom it is addressed. If you are not the intended recipient then copying, distribution or other use of the information contained is strictly prohibited and you should not rely on it. If you have received this email in error please let the sender know immediately and delete it from your system(s). Internet emails are not necessarily secure. While we take every care, University of Plymouth accepts no responsibility for viruses and it is your responsibility to scan emails and their attachments. University of Plymouth does not accept responsibility for any changes made after it was sent. Nothing in this email or its attachments constitutes an order for goods or services unless accompanied by an official order form.
> [[alternative HTML version deleted]]
> R-sig-mixed-models using r-project.org mailing list
Dr. Benjamin Bolker
Professor, Mathematics & Statistics and Biology, McMaster University
Director, School of Computational Science and Engineering
(Acting) Graduate chair, Mathematics & Statistics
More information about the R-sig-mixed-models