#StackBounty: #r #mixed-model #simulation #longitudinal-data-analysis Simulate longitudinal, curvilinear, convergent data in R

Bounty: 150

I would like to simulate data that is similar to a few given observations of longitudinal data (28 measurements per unit) in two groups (see below). The distribution of initial values could be normal or lognormal, and the two groups converge on different values (close to 0 for B, about 25 for A with residual variance) with a slightly non-linear “decay”.

How can I simulate the group-specific mean time course and the within-group variability in R with a simple parametric model?

enter image description here


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.