Description Usage Arguments Value Examples
construct c vector containing multipliers and midpoints for multiplying with beta matrix. user should make one of these per case.
1 |
trt_vec |
character vector indicating sub-phase of a particular case, e.g. c("BASELINE", "BASELINE", "TREATMENT", "TREATMENT") |
k |
number of complete sub-phase cycles, as in (AB)^k |
x_is |
(2k-1)x1 vector of times at which we evaluate the treatment effect, perhaps subphase introduction times or midpoints of subphases. |
treatment_name |
string indicating name of the treatment sub-phase as recorded in df. |
vector of -1's, 1's, and f(midpoints)
1 | c_1 <- c_vector(sim_df[sim_df$case == 1, "treatment"], k = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.