Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Precalculus

Authors: Michael Sullivan

9th edition

321716835, 321716833, 978-0321716835

More Books

Students also viewed these Mathematics questions