ONECORR
<options> ;
The ONECORR statement performs power and sample size analyses for tests of simple and partial Pearson correlation between two variables. Both Fisher’s z test and the t test are supported.
Table 75.6 summarizes the options available in the ONECORR statement.
Table 75.6: ONECORR Statement Options
Option 
Description 

Define analysis 

Specifies the underlying distribution assumed for the test statistic 

Specifies the statistical analysis 

Specify analysis information 

Specifies the significance level 

Specifies the assumed distribution of the variables 

Specifies the number of variables adjusted for in the correlation 

Specifies the null value of the correlation 

Specifies the number of sides and the direction of the statistical test 

Specify effects 

Specifies the correlation 

Specify sample size 

Enables fractional input and output for sample sizes 

Specifies the sample size 

Specify power 

Specifies the desired power of the test 

Control ordering in output 

Controls the output order of parameters 
Table 75.7 summarizes the valid result parameters in the ONECORR statement.
This section summarizes the syntax for the common analyses supported in the ONECORR statement.
The following statements demonstrate a power computation for Fisher’s z test for correlation. Default values of TEST=PEARSON, ALPHA=0.05, SIDES=2, and NPARTIALVARS=0 are assumed.
proc power; onecorr dist=fisherz nullcorr = 0.15 corr = 0.35 ntotal = 180 power = .; run;