Estimate the dual trajectory model using a Gibbs Sampler
1 2 | dualtrajMS(X1, X2, y1, y2, K1, K2, time_index, iterations, thin = 1,
dispIter = 10)
|
X1: |
Matrix, design matrix for series 1. 1st column should be the id. |
X2: |
Matrix, design matrix for series 2. 1st column should be the id. |
y1: |
Vector, outcomes for series 1 |
y2: |
Vector, outcomes for series 2 |
K1: |
Integer, number of latent classes in series 1 |
K2: |
Integer, number of latent classes in series 2 |
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.