lesson10 - Lesson 10 Topics • SAS Procedures for Standard...

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 Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Lesson 10 - Topics • SAS Procedures for Standard Statistical Tests and Analyses • Programs 20-21 in course notes • C&S 6:A-B,D-F; 7:A-C; 3:G-I,L,N,O • LSB 8:16-17 STATISTICAL PROCEDURES IN SAS PROC FREQ Chi-square tests – comparing proportions PROC TTEST T-Test comparing two means PROC ANOVA and PROC GLM Analysis of Variance comparing >2 means PROC NPAR1WAY Non-parametric Analysis of Variance PROC MEANS Paired T-Test 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 2-4 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 'Chi-square Test Comparing Active vs Placebo Group for Tiredness' ; RUN ; CHISQ – displays Chi-square 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 ƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒƒ Chi-Square 1 4.8725 0.0273 Likelihood Ratio Chi-Square 1 4.6977 0.0302 Continuity Adj. Chi-Square 1 4.4493 0.0349 Mantel-Haenszel Chi-Square 1 4.8668 0.0274 Tests if two percentages are significantly different ∑ /E E)- O ( 2 P-value Table of active by tired12 active tired12 Frequency‚ Percent ‚ Row Pct ‚ Col Pct ‚ 1‚ 2‚ Total ƒƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆƒƒƒƒƒƒƒƒˆ...
View Full Document

{[ snackBarMessage ]}

Page1 / 29

lesson10 - Lesson 10 Topics • SAS Procedures for Standard...

This preview shows document pages 1 - 10. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online