SUPPORT / SAMPLES & SAS NOTES
 

Support

Sample 24991: Compute biserial, point biserial, and rank biserial correlations

DetailsResultsDownloadsAboutRate It

Compute biserial, point biserial, and rank biserial correlations

Contents: Purpose / Requirements / Usage / Details / Limitations / Missing Values / References
PURPOSE:
Computes biserial, point biserial, and rank biserial correlations between a binary and a continuous (or ranked) variable.
REQUIREMENTS:
Base SAS Software.
USAGE:
Follow the instructions in the Downloads tab of this sample to save the %BISERIAL macro definition. Replace the text within quotes in the following statement with the location of the %BISERIAL macro definition file on your system. In your SAS program or in the SAS editor window, specify this statement to define the %BISERIAL macro and make it available for use:
   %inc "<location of your file containing the BISERIAL macro>";

Following this statement, you may call the %BISERIAL macro. See the Results tab for an example.

The required arguments for the %BISERIAL macro are as follows:

data=
SAS data set to be analyzed.
binary=
Name of dichotomous variable which must be numeric with values 0 and 1.
contin=
Name of continuous variable. Ranks of this variable will be computed to produce the rank biserial correlation.
out=
Output data set name.
DETAILS:
The biserial correlation measures the strength of the relationship between a binary and a continuous variable, where the binary variable has an underlying continuous distribution but is measured as binary. If the binary variable is truly dichotomous, then the point biserial correlation is used. The rank biserial correlation measures the strength of the relationship between a binary and a rankings (ordinal) variable.

The %BISERIAL macro produces only an output data set.

LIMITATIONS:
No error checking is done. Be sure that data set and variable names exist and are properly spelled, and that the BINARY= variable only takes on values 0 and 1.
MISSING VALUES:
Observations with missing values of the binary or the continuous variable are excluded.
REFERENCES:
Helena Chmura Kraemer, 1982, "Biserial Correlation", Encyclopaedia of Statistical Sciences, Volume 1, Wiley, pages 276-279.



These sample files and code examples are provided by SAS Institute Inc. "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Recipients acknowledge and agree that SAS Institute shall not be liable for any damages whatsoever arising out of their use of this material. In addition, SAS Institute will provide no support for the materials contained herein.