Statistical power analysis characterizes the ability of a study to detect a meaningful effect size for example, the difference between two population means. It also determines the sample size required to provide a desired power for an effect of scientific interest Proper planning reduces the risk of conducting a study that will not produce useful results and determines the most sensitive design for the resources available. Power analysis is now integral to the health and behavioral sciences, and its use is steadily increasing wherever empirical studies are performed.
SAS 9.1 brings power and sample size computations to the SAS System through both procedures and an interface. This release contains production versions of the POWER and GLMPOWER procedures, which perform prospective power and sample size computations, and PSS, a web application that provides an interface to these computations. The POWER procedure covers a variety of statistical analyses, while the GLMPOWER procedure focuses on power analysis for the linear model. The PSS Application is a point-and-click interface to common power and sample size tasks. It provides multiple input parameter options, stores results in a project format, displays power curves, and produce appropriate narratives for the results. Both the procedures and the PSS Application are included with SAS/STAT software.
Here prospective indicates that the analysis pertains to planning for a future study. This is in contrast to retrospective analysis for a past study, which is not supported by this software.
The POWER procedure covers a variety of statistical analyses:
There are many factors involved in a power analysis, such as the research objective, design, data analysis method, power, sample size, Type I error, variability, and effect size. By performing a power analysis, you can learn about the relationships between these factors, optimizing those that are under your control and exploring the implications of those that are fixed.
The following are the input to the POWER procedure that include these components of study planning:You designate one of these components by a missing value in the input, in order to identify it as the result parameter. The procedure calculates this result value over one or more scenarios of input values for all other components. Power and sample size are the most common result values, but for some analyses the result can be something else. For example, you can solve for the sample size of a single group for a two sample t test.
In addition to tabular results, PROC POWER produces graphs. You can produce the most common types of plots easily with default settings and use a variety of options for more customized graphics. For example, you can specify your axis ranges, number of plotted points, mapping of graphical features (such as color, line style, symbol and panel) to analysis parameters, and legend appearance.
The GLMPOWER procedure performs prospective analyses for linear models. The statistical analyses that are covered include Type III tests and contrasts of fixed class effects in univariate linear models, optionally with covariates. The covariates can be continuous or categorical. Tests and contrasts involving random effects are not supported.
You specify the design and the cell means using an exemplary data set and specify the model and contrasts using MODEL and CONTRAST statements like those in the GLM procedure. You specify the remaining parameters with the POWER statement, which is similar to analysis statements in the POWER procedure.
In addition to tabular results, PROC GLMPOWER also produces graphs that are customizable. The following input to the POWER procedure that include the following components of study planning.
The following SAS statements illustrate the syntax of PROC GLMPOWER:
proc glmpower data=Exemplary;
class Variety Exposure;
model Height = Variety |
Exposure;
power
stddev = 5
ntotal = 60
power = .;
run;
These statements request power for a planned data analysis is a two-way ANOVA with flower height (measured at two weeks) as the response and a model consisting of the effects of light exposure, flower variety, and their interaction. Requested is the power of each effect test using a balanced design with a total of 60 specimens (10 for each combination of exposure and variety) and alpha = 0.05 for each test.
The Power and Sample Size Application, distributed with SAS/STAT software, is a web interface that provides access to basic power and sample size computations.
The following are the statistical tasks for which PSS computes power and sample size.
Allowing alternate input specifications, writing narratives, and saving each analysis as a project for later retrieval makes PSS a very convenient tool for both you and your clients. PSS can be run locally on a workstation or laptop or surfaced with a browser from a server running SAS.
Download pdf version.
Statistics and Operations Research Home Page | What's New in Data Analysis