Usage
sample.n(eff, y0.a0, y1.a0, y0.a1, y1.a1, p00, p10, p01, p11, n, m.a0, m.a1)
Arguments
eff
treatment effect of interest; either ``DEa0'', ``DEa1'', ``IE'',
``TE'', or ``OE''
y0.a0
Observed $\vec{y}(0;\alpha_{0})$; includes NAs where missing
y1.a0
Observed $\vec{y}(1;\alpha_{0})$; includes NAs where missing
y0.a1
Observed $\vec{y}(0;\alpha_{1})$; includes NAs where missing
y1.a1
Observed $\vec{y}(1;\alpha_{1})$; includes NAs where missing
p00
Missingness in $\vec{y}(0;\alpha_{0})$ is filled in by
sampling from a Bernoulli distribution with mean $p_{00}$
p10
Missingness in $\vec{y}(1;\alpha_{0})$ is filled in by
sampling from a Bernoulli distribution with mean $p_{10}$
p01
Missingness in $\vec{y}(0;\alpha_{1})$ is filled in by
sampling from a Bernoulli distribution with mean $p_{01}$
p11
Missingness in $\vec{y}(1;\alpha_{0})$ is filled in by
sampling from a Bernoulli distribution with mean $p_{11}$
n
group size vector where element $i=1,\ldots,k$ is
equal to the number of subjects in group $i$
m.a0
$\alpha_{0}$ randomization vector where element $i=1,\ldots,k$ is
equal to the number of subjects in group $i$ who would receive treatment if group $i$ was randomized to strategy $\alpha_{0}$
m.a1
$\alpha_{1}$ randomization vector where element $i=1,\ldots,k$ is
equal to the number of subjects in group $i$ who would receive treatment if group $i$ was randomized to strategy $\alpha_{1}$