Description Usage Arguments Value
Generate data for a dual trajectory model
1 2 | gen_data_dual(N, T1, T2, pi1, pi2, beta1, beta2, sigma1, sigma2,
poly = 1, scale = FALSE)
|
N: |
Integer, number of tandems |
T1: |
Integer, number of time periods in series 1 |
T2: |
Integer, number of time periods in series 2 |
pi1: |
Vector, probability of being assigned to each group in series 1 |
pi2: |
Matrix, transition matrix. Row j is the transition probabilities for when the series 1 group is j |
beta1: |
Matrix, coefficients for each group in series 1 |
beta2: |
Matrix, coefficients for each group in series 2 |
sigma1: |
Float, variance for outcomes in series 1 |
sigma2: |
Float, variance for outcomes in series 2 |
scale: |
Boolean, TRUE to scale design matrix |
List:
X1: Matrix, dataset for series 1
X2: Matrix, dataset for series 2
Y1: Vector, outcomes for series 1
Y2: Vector, outcomes for series 2
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.