Answered step by step
Verified Expert Solution
Question
1 Approved Answer
proc means data=Clean.Patients noprint ; var HR; where HR ne (900); output out=Mean_Std(drop=_type_ _freq_) mean= std= / autoname; run; title Outliers for HR Based on
proc means data=Clean.Patients noprint ; var HR; where HR ne (900); output out=Mean_Std(drop=_type_ _freq_) mean= std= / autoname; run; title "Outliers for HR Based on 2 Standard Deviations"; data _null_; file print; set Clean.Patients(keep=Patno HR ); ***bring in the means and standard deviations; if _n_ = 1 then set Mean_Std; **_n_ is the index**; if HR lt HR_Mean - 2*HR_StdDev and not missing(HR) or HR gt HR_Mean + 2*HR_StdDev then put Patno= HR=; run
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started