Unformatted text preview:

libname BIOS6102 "/home/u54386392/BIOS6102"; proc import datafile="/home/u54386392/BIOS6102/cvd_match1.csv" DBMS=CSV OUT=bios6102.cvd; getnames=yes; run; data cvd; set bios6102.cvd; label set='pair_ID' cvd='cardiovascular disease, 1:yes, 0:no' hyperten='hypertension'; run; /*transform data for McNemar's test*/ data cvd1 (keep=set cvd_hyperten); set cvd; if cvd=1; rename hyperten=cvd_hyperten; run; data cvd0 (keep=set nocvd_hyperten); set cvd; if cvd=0; rename hyperten=nocvd_hyperten; run;proc sort data=cvd1; by set; run; proc sort data=cvd0; by set; run; data new; merge cvd1 cvd0; by set; run; proc freq data=new;title "McNemar's test for Paired Samples";tables cvd_hyperten*nocvd_hyperten /agree expected norow nocol nopercent;run; proc logistic data=cvd;strata set;model cvd(event='1')=hyperten


View Full Document

LSU Health Shreveport BIOS 6102 - Lab 11 Assignment

Documents in this Course
Load more
Download Lab 11 Assignment
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lab 11 Assignment and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lab 11 Assignment 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?