The SCORE Procedure

Example 102.3 Custom Scoring Coefficients

This example uses a specially created custom scoring data set and produces Output 102.3.1 and Output 102.3.2. The first scoring coefficient creates a variable that is AgeWeight; the second scoring coefficient evaluates the variable RunPulseRstPulse; and the third scoring coefficient totals all six variables. Since the scoring coefficients data set (data set A) does not contain any observations with _TYPE_=’MEAN’ or _TYPE_=’STD’, the data in the Fitness data set (see Example 102.1) are not standardized before scoring.

The following statements produce Output 102.3.1 and Output 102.3.2:

data A;
   input _type_ $ _name_ $
         Age Weight RunTime RunPulse RestPulse;
   datalines;
SCORE  AGE_WGT  1 -1  0  0  0
SCORE  RUN_RST  0  0  0  1 -1
SCORE  TOTAL    1  1  1  1  1
;
proc print data=A;
   title 'Constructed Scoring Example';
   title2 'Scoring Coefficients';
run;
proc score data=Fitness score=A out=B;
   var Age Weight RunTime RunPulse RestPulse;
run;
proc print data=B;
   title2 'Scored Data';
run;

Output 102.3.1: Custom Scoring Data Set and Scored Fitness Data: PROC PRINT

Constructed Scoring Example
Scoring Coefficients

Obs_type__name_AgeWeightRunTimeRunPulseRestPulse
1SCOREAGE_WGT1-1000
2SCORERUN_RST0001-1
3SCORETOTAL11111


Output 102.3.2: Custom Scored Fitness Data: PROC PRINT

Constructed Scoring Example
Scored Data

ObsAgeWeightOxygenRunTimeRestPulseRunPulseAGE_WGTRUN_RSTTOTAL
14489.4744.60911.3762178-45.47116384.84
24075.0745.31310.0762185-35.07123372.14
34485.8454.2978.6545156-41.84111339.49
44268.1559.5718.1740166-26.15126324.32
53889.0249.8749.2255178-51.02123369.24
64777.4544.81111.6358176-30.45118370.08
74075.9845.68111.9570176-35.98106373.93
84381.1949.09110.8564162-38.1998361.04
94481.4239.44213.0863174-37.42111375.50
103881.8760.0558.6348170-43.87122346.50
114473.0350.54110.1345168-29.03123340.16
124587.6637.38814.0356186-42.66130388.69