Description Usage Arguments Value
generate outcome vectors for each individual case
1 2 | simulate_ABk_outcomes(df, beta_vec, k, phi = 0.2, sigma = 1, tau = 1,
treatment_name = "TREATMENT")
|
df |
data.frame from simulate_ABk_no_outcome |
beta_vec |
vector of linear coefficients, shared over individuals |
k |
the number of complete phases |
sigma |
within-case variance |
tau |
between-case variance |
treatment_name |
|
slope_treatment |
string indicating name of the treatment sub-phase as recorded in df |
list containing an estimated beta vector and loss values obtained during convergence
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.