estimate_effect_size: estimate_effect_size

Description Usage Arguments Value Examples

Description

calculate d, the estimated effect size when rho and phi are KNOWN.

Usage

1
estimate_effect_size(data, k, rho, phi)

Arguments

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

Value

d, the estimate of the effect size, delta_R

Examples

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)

fineiskid/scdlintrend documentation built on May 16, 2019, 12:53 p.m.