Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

can someone please help me with sas.. I need to get this as outputs THIS ARE MY

ID: 3792287 • Letter: C

Question

can someone please help me with sas..

I need to get this as outputs

THIS ARE MY CODES .....,

OPTIONS PS = 58 LS = 80 nodate nonumber;
LIBNAME summary 'D:SASCLASSchapter11homework 11hw12file';
PROC MEANS data = summary.backhem MAXDEC=2;
VAR mcv;
class race;
output out = summary
min= minmcv
P50=medmcv
MAX= maxmcv
;
RUN;
PROC FORMAT;
value racefmt    1= "AMIndian"
     2= "Asian"
     3= "Black"
     4="Caucasian"
     5= "Multi-racial"
     6= "Other";

RUN;
PROC PRINT data=summary noobs label double;
format race racefmt. ;
var race minmcv medmcv maxmcv samplesize;
label race = 'Race'
samplesize = 'Sample Size'
minmcv = 'Minimum MCV'
maxmcv = 'Maximum MCV'
medmcv = 'Median MCV'
;
title 'The Summary Data Set';
RUN;

Im not sure what im doing wrong my proc format is not reading the values and I get an error that doesnt find samplesize, please correct me

race AMd Indian Asian Black Caucasian Multi racial Other Analysis Variable MCW mean cel 1 vol une (fl) Obs Std Dev Mean Minimum 7.07 80.00 85.00 3.87 88.90 80.90 4.86 29 87.17 77.00 89.21 65.00 593 4.4 3.11 88.30 90.43 92.40 4.81 89.00 Maximum 90.00 93.00 96.30 106.00 94.00 95.80

Explanation / Answer

VAR mcv;
class race;
output = summary
min= minmcv
P50=medmcv
MAX= maxmcv ;


RUN;

PROC FORMAT;
value racefmt

   1= "AMIndian"
     2= "Asian"
     3= "Black"
     4="Caucasian"
     5= "Multi-racial"
     6= "Other";

RUN;
PROC PRINT data=summary noobs label double;
format race racefmt. ;
var race minmcv medmcv maxmcv samplesize;
label race = 'Race'
samplesize = 'Sample Size'
minmcv = 'Minimum MCV'
maxmcv = 'Maximum MCV'
medmcv = 'Median MCV'
;
title 'The Summary Data Set';
RUN;

run this code

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Chat Now And Get Quote