data(pnmtrem1.sim.data1)timeresponsesubjectyonesxtime, response and subject orders, s/he can easily understand the data structure which the model accepts. Baseline and later time points of the data may include different number of independent variables. Therefore, datasets for $t=1$ and $t \geq 2$ are presented in different data objects, pnmtrem1.sim.data1 and pnmtrem1.sim.data2, respectively.
data(pnmtrem1.sim.data1)
head(pnmtrem1.sim.data1)
str(pnmtrem1.sim.data1)
Run the code above in your browser using DataLab