Description Usage Arguments Value Examples
calculate the variance about the regression line for case i
1 | var_i(X, y, Sigma, k)
|
X |
the (4k, N_i)-dimensional design matrix for case i. |
y |
the vector of N_i outcomes for case i |
Sigma |
the AR(1) covariance matrix |
k |
number of complete sub-phase cycles, as in (AB)^k |
sigma_sq_i estimate, A_i an (N_i, N_i)-dimensional matrix (latter value necessary for combining treatment effects across individuals)
1 2 | #assuming you've run >sim <- simulate_ABk(...)
sigma_calcs <- var_i(design_1, y_1, sigma_1, k = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.