6 power oneproportion, cluster — Power analysis for a one-sample proportion test, CRD
Using power oneproportion, cluster
If you specify the cluster option, include k() to specify the number of clusters or include m()
to specify the cluster size, the power oneproportion command will perform computations for a
one-sample proportion test in a CRD. The computations for a CRD are based on the large-sample Wald
z test.
All computations are performed for a two-sided hypothesis test where, by default, the significance
level is set to 0.05. You may change the significance level by specifying the alpha() option. You
can specify the onesided option to request a one-sided test.
To compute the number of clusters, you must specify the proportions under the null and alternative
hypotheses as command arguments p
0
and p
a
, respectively, and specify the cluster size in the m()
option. Instead of specifying the m() option, you may specify the sample size in the n() option
and specify the cluster option, so that power onemean will perform its computation for a cluster
randomized design instead of the default individual-level design. You may also specify the power of
the test in the power() option.
To compute cluster size, you must specify the null proportion p
0
, the alternative proportion p
a
,
and the number of clusters in the k() option. You may also specify the power of the test in the
power() option.
To compute power, you must specify the number of clusters in the k() option, the cluster size
in the m() option or the sample size in the n() option, the null proportion p
0
, and the alternative
proportion p
a
.
Instead of the alternative proportion p
a
, you may specify the difference p
a
− p
0
between the
alternative proportion and the null proportion in the diff() option when computing sample size or
power.
The effect size δ is defined as the difference between the alternative and null proportions. In a
CRD, the effect size δ is also adjusted for the cluster design; see Methods and formulas.
To compute effect size and the corresponding target proportion, you must specify the number of
clusters in the k() option, the cluster size in the m() option or the sample size in the n() option,
the power in the power() option, and the null proportion p
0
. You may also specify the direction of
the effect in the direction() option. The direction is upper by default, direction(upper); see
Using power oneproportion in [PSS-2] power oneproportion for other details.
All computations assume an intraclass correlation of 0.5. You can change this by specifying the
rho() option. Also, all clusters are assumed to be of the same size unless the coefficient of variation
for cluster sizes is specified in the cvcluster() option.
By default, the computed number of clusters, cluster size, and sample size is rounded up. However,
you can specify the nfractional option to see the corresponding fractional values; see Fractional
sample sizes in [PSS-4] Unbalanced designs for an example. If the cvcluster() option is specified
when computing cluster size, then cluster size represents the average cluster size and is thus not
rounded. When sample size is specified in the n() option, fractional cluster size may be reported to
accommodate the specified number of clusters and sample size.
Some of power oneproportion, cluster’s computations require iteration, such as to compute
the number of clusters for a two-sided test; see Methods and formulas for details and [PSS-2] power
for the descriptions of options that control the iteration procedure.