Description Usage Arguments Value Examples
calculate d, the estimated effect size when rho and phi are KNOWN.
1 | estimate_effect_size(data, k, rho, phi)
|
data |
data.frame containing case, time, treatment, phase, and outcome columns |
k |
number of complete sub-phase cycles, as in (AB)^k |
rho |
(tau^2)/(tau^2 + sigma^2) |
phi |
first-order autocorrelation parameter |
d, the estimate of the effect size, delta_R
1 2 3 | beta_matrix <- matrix(rep(c(1:8), 3), byrow = T, nrow = 3)
sim_data <- simulate_ABk(m = 3, n = 20, k = 2, min_Ni = 10, outcome = T, beta_matrix = beta_matrix)
d <- estimate_effect_size(sim_data, 2, 0.5, 0.2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.