ONESAMPLEMEANS
<options> ;
The ONESAMPLEMEANS statement performs power and sample size analyses for t tests, equivalence tests, and confidence interval precision involving one sample.
Table 75.10 summarizes the options available in the ONESAMPLEMEANS statement.
Table 75.10: 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 halfwidth 

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 halfwidth less than or equal to the value specified by HALFWIDTH= 

Control ordering in output 

Controls the output order of parameters 
Table 75.11 summarizes the valid result parameters for different analyses in the ONESAMPLEMEANS statement.
To define the analysis, choose one of the following parameterizations:
This section summarizes the syntax for the common analyses supported in the ONESAMPLEMEANS statement.
The following statements demonstrate a power computation for the onesample t test. Default values for the DIST=, SIDES=, NULLMEAN=, and ALPHA= options specify a twosided 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;
The following statements demonstrate a sample size computation for the onesample t test for lognormal data. Default values for the SIDES=, NULLMEAN=, and ALPHA= options specify a twosided 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;
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;
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;
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 twosided interval with a confidence level of 0.95.
proc power; onesamplemeans ci = t halfwidth = 14 stddev = 8 ntotal = 50 probwidth = .; run;