Estimate the trajectory model with model averaging
1 | trajMS(X, y, K, time_index, iterations, thin = 1, dispIter = 10)
|
X: |
Matrix, design matrix for. 1st column should be the id. Last columns of X correspond to time and polynomials of time. |
y: |
Vector, outcomes |
K: |
Integer, number of latent classes |
time_index: |
Integer, column of X corresponding to time |
iterations: |
Integer, number of MCMC iterations |
thin: |
Integer, store every 'thin' iteration |
dispIter: |
Integer, frequency of printing the iteration number |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.