The POWER Procedure
ONESAMPLEMEANS Statement
ONESAMPLEMEANS <options>;
The ONESAMPLEMEANS statement performs power and sample size analyses for t tests, equivalence tests, and confidence interval precision involving one sample.
Summary of Options
Table 90.15 summarizes the options available in the ONESAMPLEMEANS statement.
Table 90.15: ONESAMPLEMEANS Statement Options
Option | Description |
|---|---|
Define Analysis | |
Specifies an analysis of precision of the confidence interval for the mean | |
Specifies the underlying distribution assumed for the test statistic | |
Specifies the statistical analysis | |
Specify Analysis Information | |
Specifies the significance level | |
Specifies the lower equivalence bound for the mean | |
Specifies the null mean | |
Specifies the number of sides and the direction of the statistical test | |
Specifies the upper equivalence bound for the mean | |
Specify Effect | |
Specifies the desired confidence interval half-width | |
Specifies the mean | |
Specify Variability | |
Specifies the coefficient of variation | |
Specifies the standard deviation | |
Specify Sample Size | |
Enables fractional input and output for sample sizes | |
Specifies the sample size | |
Specify Power and Related Probabilities | |
Specifies the desired power of the test | |
Specifies the type of probability for the PROBWIDTH= option | |
Specifies the probability of obtaining a confidence interval half-width less than or equal to the value specified by HALFWIDTH= | |
Control Ordering in Output | |
Controls the output order of parameters | |
Table 90.16 summarizes the valid result parameters for different analyses in the ONESAMPLEMEANS statement.
Table 90.16: Summary of Result Parameters in the ONESAMPLEMEANS Statement
Dictionary of Options
Restrictions on Option Combinations
To define the analysis, choose one of the following parameterizations:
Option Groups for Common Analyses
This section summarizes the syntax for the common analyses that are supported in the ONESAMPLEMEANS statement.
One-Sample t Test
The following statements demonstrate a power computation for the one-sample t test. Default values for the DIST=, SIDES=, NULLMEAN=, and ALPHA= options specify a two-sided test for zero mean with a normal distribution and a significance level of 0.05.
proc power;
onesamplemeans test=t
mean = 7
stddev = 3
ntotal = 50
power = .;
run;
One-Sample t Test with Lognormal Data
The following statements demonstrate a sample size computation for the one-sample t test for lognormal data. Default values for the SIDES=, NULLMEAN=, and ALPHA= options specify a two-sided test for unit mean with a significance level of 0.05.
proc power;
onesamplemeans test=t dist=lognormal
mean = 7
cv = 0.8
ntotal = .
power = 0.9;
run;
Equivalence Test for Mean of Normal Data
The following statements demonstrate a power computation for the TOST equivalence test for a normal mean. Default values for the DIST= and ALPHA= options specify a normal distribution and a significance level of 0.05.
proc power;
onesamplemeans test=equiv
lower = 2
upper = 7
mean = 4
stddev = 3
ntotal = 100
power = .;
run;
Equivalence Test for Mean of Lognormal Data
The following statements demonstrate a sample size computation for the TOST equivalence test for a lognormal mean. The default of ALPHA=0.05 specifies a significance level of 0.05.
proc power;
onesamplemeans test=equiv dist=lognormal
lower = 1
upper = 5
mean = 3
cv = 0.6
ntotal = .
power = 0.85;
run;
Confidence Interval for Mean
By default CI=T analyzes the conditional probability of obtaining the desired precision, given that the interval contains the true mean, as in the following statements. The defaults of SIDES=2 and ALPHA=0.05 specify a two-sided interval with a confidence level of 0.95.
proc power;
onesamplemeans ci = t
halfwidth = 14
stddev = 8
ntotal = 50
probwidth = .;
run;
Copyright © SAS Institute Inc. All rights reserved.