Description Usage Arguments Value
derive a beta vector for an (AB)^k SCD study with desired treatment effect equal to delta. Uses gradient descent for convergence
1 2 | beta_given_delta(delta, c_vec, sigma = 1, tau = 1, tol = 1e-06,
slope_baseline = 0.5, slope_treatment = 1)
|
delta |
the standardized mean difference effect size |
sigma |
the true within-case variance |
tau |
the true between-case variance |
tol |
absolute difference between true and estimated delta required for convergence |
slope_baseline |
linear trend during baseline subphase |
slope_treatment |
linear trend during treatment subphase |
c_vector |
vector of multipliers for beta vector |
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.