help powersimplot

Plot power curves after powersim

Syntax

powersimplot
[
,
esize
nogrid
twoway_options
]

Description

powersimplot plots statistical power as a function of sample size
by effect sizes (the default) or as a function of effect size by sample
sizes, using simulation results obtained with powersim.

Options

esize Plot power as a function of effect size (by sample sizes).

nogrid Suppress grid lines.

twoway_options Any options other than by()
documented in [G] twoway_options .

Examples

Power (of testing a certain interaction effect in a linear regression model)
as a function of sample size, by effect sizes:

powersim , ///

b(0.2(0.2)0.8) ///

alpha(0.05) ///

pos(8) ///

sample(10 50(50)600) ///

nreps(500) ///

family(gaussian .92) ///

link(identity) ///

block22(0.5 x1 0.2 x2 _bp) ///

dofile(psim_dofile, replace): reg y i.x1##i.x2

powersimplot

Power (of testing a certain interaction effect in a linear regression model)
as a function of effect size, by sample sizes:

powersim , ///

b(0(0.1)1) ///

alpha(0.05) ///

pos(8) ///

sample(200(200)800) ///

nreps(500) ///

family(gaussian .92) ///

link(identity) ///

block22(0.5 x1 0.2 x2 _bp) ///

dofile(psim_dofile, replace): reg y i.x1##i.x2

powersimplot, e

Author

Joerg Luedicke

Yale University and University of Florida

United States

email: joerg.luedicke@ufl.edu

Also see

Help: powersim