This preview shows pages 1–10. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full DocumentThis preview has intentionally blurred sections. Sign up to view the full version.
View Full Document
Unformatted text preview: Lesson 10  Topics SAS Procedures for Standard Statistical Tests and Analyses Programs 2021 in course notes C&S 6:AB,DF; 7:AC; 3:GI,L,N,O LSB 8:1617 STATISTICAL PROCEDURES IN SAS PROC FREQ Chisquare tests comparing proportions PROC TTEST TTest comparing two means PROC ANOVA and PROC GLM Analysis of Variance comparing >2 means PROC NPAR1WAY Nonparametric Analysis of Variance PROC MEANS Paired TTest or comparing change between 2 periods STATISTICAL PROCEDURES IN SAS PROC LOGIST Logistic Regression PROC LIFETEST Compare survival curves PROC PHREG Cox Proportional Hazards Regression PROC CORR Correlation Analysis PROC REG Linear Regression Important to understand the output Treatment Groups in TOMHS 1. Beta Blocker 2. Calcium Channel Blocker 3. Diuretic 4. Alpha Blocker 5. ACE Inhibitor 6. Placebo 1  5 are blood pressure drugs Side Effect Questions Have you been troubled in the past 3 months with any of the following? a. Fever b. Sweating ww. Feeling depressed 1. No, not troubled 2. Yes, mildly 3. Yes, moderately 4. Yes, severely Responses 24 indicate a positive response. * Program 20 DATA stat ; INFILE C:\SAS_Files\tomhsfull.data ' LRECL = 400 ; INPUT @ 1 ptid $10. @ 25 group 1. @ 115 sbpbl 3. @ 123 sbp12 3. @ 278 se12_2 1. ; if se12_2 in( 2 , 3 , 4 ) then tired12 = 1 ; else if se12_2 = 1 then tired12 = 2 ; sbpchg = sbp12  sbpbl; if group = 6 then active = 2 ; else active = 1 ; if group IN(1,2,3,4,5) then drug = group; PROC FREQ DATA =stat; TABLES active*tired/ CHISQ RELRISK ; TITLE 'Chisquare Test Comparing Active vs Placebo Group for Tiredness' ; RUN ; CHISQ displays Chisquare test RELRISK displays odds ratio and relative risk Table of active by tired12 active tired12 Frequency Percent Row Pct Col Pct 1 2 Total 1 112 522 634 13.04 60.77 73.81 17.67 82.33 67.07 75.43 2 55 170 225 6.40 19.79 26.19 24.44 75.56 32.93 24.57 Total 167 692 859 19.44 80.56 100.00 Frequency Missing = 43 Statistic DF Value Prob ChiSquare 1 4.8725 0.0273 Likelihood Ratio ChiSquare 1 4.6977 0.0302 Continuity Adj. ChiSquare 1 4.4493 0.0349 MantelHaenszel ChiSquare 1 4.8668 0.0274 Tests if two percentages are significantly different /E E) O ( 2 Pvalue Table of active by tired12 active tired12 Frequency Percent Row Pct Col Pct 1 2 Total...
View
Full
Document
 Fall '11
 GregGrandis

Click to edit the document details