I will have data from an experiment with two binary treatments (X and Z) and their interaction. The unequal sample sizes are given in this table:
The baseline rate is Pr(Y=1 | X=0, Z=0) = 4/1000. I am interested in doing inference on the average marginal effects (possibly with some covariates), so I will estimate something like one of these models:
Is there a way to calculate the effect sizes that I can detect with either the OLS or probit/margins, given some alpha and power?
I tried using -powersim- (version 1.0.1), but I could not get the the block22() option with my uneven split.
Z=1 | Z=0 | |
X=1 | N=2,500 | N=717,500 |
X=0 | N=2,500 | N=77,500 |
Code:
reg y i.x##i.z, robust probit y i.x##i.z margins, at(x = (0 1) z=(0 1)) contrast(atcontrast(r._at) wald)
I tried using -powersim- (version 1.0.1), but I could not get the the block22() option with my uneven split.
Comment