Presentation is loading. Please wait.

Presentation is loading. Please wait.

Copyright © 1999-2008 Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international.

Similar presentations


Presentation on theme: "Copyright © 1999-2008 Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international."— Presentation transcript:

1 Copyright © 1999-2008 Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international treaties. Unauthorized reproduction of this presentation, or any portion of it, may result in severe civil and criminal penalties and will be prosecuted to maximum extent possible under the law. HRP 223 - 2008 Topic 10 - Categorical Outcomes

2

3

4

5 Pearson Modeling Effect Size +/- 1 for 2x2 tables with.1.3.5 Less Adverse Events Odds ratio = 22/44 ÷ 28/24 Relative Risk 1 = 22/66 ÷ 28/52 (χ 2 /N) ^.5

6 HRP223 2008 Chi-Square Working  χ 2 = (Observed # - Expected #) 2 / Expected #  χ 2 determines if an association exits  χ 2 does not measure the strength of the association  χ 2 depends on and reflects sample size

7  Right click on the flowchart or File > New…

8 HRP223 2008 Tables Bigger than 2 x 2

9

10

11 1 1 3 3 4 4 2 2 Type “ Yes” with a leading blank

12 5 5 6 6 8 8 7 7

13

14

15

16 HRP223 2008

17 (16 * 1 + 26 * 2 + 29 * 3) / 71 = mean for ACT (24 * 1 + 26 * 2 + 18 * 3) / 71 = mean for Placebo

18 OR: 29/23 ÷ 40/60 = 1.891

19 If you model the wrong outcome, tweak this. You can control parameterization here.

20

21 Impact of drug relative to an on placebo baseline The model found an answer. If you have prefect prediction (0 frequencies in the contingency tables), expect problems. Use the response variable sort order if you are predicting the wrong outcome. Watch for missing data.

22 Akaike’s Information Criterion, Schwartz Criterion, -2 log likelihood are here. All are used to compare nested models. AIC and SC penalize you for the number of parameters. Overall, is the model any good?

23

24

25

26 Domer’s D (nc-nd) / t Gamma (nc –nd) / (nc + nd) Tau-a (nc – nd) / (.5 * N * N-1) c = (nc +.5 * (t-nc –nd)) / t nc = # concordant pairs Nd = # discordant pairs t = pairs with different response values c = area under the ROC curve Somer’s D = 2(c-.5) Concordant = Given a pair of observations with different values in the response variable, the model correctly assigns the higher probability of the outcome to the person with the outcome.

27

28 Sensitivity: Correctly identify the presence of a condition in those with the disease. Specificity: Correctly identify the lack of a condition in those without the disease.

29

30

31 HRP223 2008 Odds of a Month in Remission

32 HRP223 2008 Profile likelihood are more accurate (especially for small samples) but they need extra horsepower to calculate.

33 HRP223 2008 Confidence Intervals

34 Don’t interpret these as the % of variance accounted for in your model.

35 Image from: Categorical Data Analysis Using Logistic Regression Course Notes (2005) SAS.

36 Like leverage Standardized change in parameters if this observation is dropped How good does the model do at predicting each person Overall change in parameters if this observation is dropped. Like cooks distance.

37 Events (healthy) Not events (sick) Poorly fit are in the upper corners. Rough rule of thumb is > 4. See Hosmer and Lemeshow (2000).

38 Modify the code to get a better plot showing the impact on the CLs.

39

40 HRP223 2008 Look for big bubbles and you can hover the mouse over the dots to see the subject- observation number.

41 HRP223 2008 Are you missing interactions?  Compare you model vs. a saturated model.  It does not make sense if you have continuous variables in the model.

42 HRP223 2008 Use H and L if you have continuous predictors in the model.

43 Logistic “issues”

44 Conditional Logistic They forgot the strata task role! Use “Group analysis by” then tweak the code. You want to predict BBD, so change response variable sort order to descending.

45 HRP223 2008 Change “by” into strata.

46


Download ppt "Copyright © 1999-2008 Leland Stanford Junior University. All rights reserved. Warning: This presentation is protected by copyright law and international."

Similar presentations


Ads by Google