![]() | ![]() | ![]() | ![]() | ![]() |
| Contents: | Purpose / Requirements / Usage / Details / Limitations / Missing Values / References |
%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 k;
length x1 $ 1;
input x1 length;
event=(x1='y');
cards;
y 14.8
n 13.8
y 12.4
y 10.1
y 7.1
y 6.1
n 5.8
y 4.6
n 4.3
n 3.5
n 3.3
y 3.2
y 3.0
n 2.8
n 2.8
n 2.5
y 2.4
y 2.3
y 2.1
n 1.7
n 1.7
n 1.5
n 1.3
n 1.3
n 1.2
n 1.2
n 1.1
y 0.8
n 0.7
n 0.6
n 0.5
n 0.2
n 0.2
y 0.1
;
/* Define the BISERIAL macro */
%inc "<location of your file containing the BISERIAL macro>";
%biserial(data=k, contin=LENGTH, binary=EVENT, out=out1);
proc print data=out1 label noobs;
title 'Point Biserial, Biserial and Rank Biserial Correlations';
run;
Point Biserial, Biserial and Rank Biserial Correlations
Point Rank
Biserial Biserial Biserial
Corr Corr Corr
0.36149 0.45369 0.43590
Right-click on the link below and select Save to save
the %BISERIAL macro definition
to a file. It is recommended that you name the file
biserial.sas.
Download and save biserial.sas
| Type: | Sample |
| Topic: | SAS Reference ==> Procedures ==> RANK Analytics ==> Transformations Analytics ==> Nonparametric Analysis SAS Reference ==> Procedures ==> CORR Analytics ==> Descriptive Statistics |
| Date Modified: | 2007-08-11 03:03:08 |
| Date Created: | 2005-01-13 15:02:57 |
| Product Family | Product | Host | SAS Release | |
| Starting | Ending | |||
| SAS System | SAS/STAT | All | n/a | n/a |
| SAS System | Base SAS | All | n/a | n/a |





