Presentation is loading. Please wait.

Presentation is loading. Please wait.

BIOST 536 Lecture 11 1 Lecture 11 – Additional topics in Logistic Regression C-statistic (“concordance statistic”)  Same as Area under the curve (AUC)

Similar presentations


Presentation on theme: "BIOST 536 Lecture 11 1 Lecture 11 – Additional topics in Logistic Regression C-statistic (“concordance statistic”)  Same as Area under the curve (AUC)"— Presentation transcript:

1 BIOST 536 Lecture 11 1 Lecture 11 – Additional topics in Logistic Regression C-statistic (“concordance statistic”)  Same as Area under the curve (AUC) in LROC (logistic receiving operating characteristic)  Fit a model and generate logit (p) and p for each observation  Form all possible pairings of the m cases and n controls (total number of pairs is m x n)  Compare logit (p case ) to logit (p control )  C-statistic is equal to

2 BIOST 536 Lecture 11 2 Create all possible pairs of cases (m=178) x number of controls (n=732) = 130,296 Assess number of pairs where the case logit > control logit No ties – get the same result as lroc Can also compute the c-statistic for the validation sample to test prediction in a new sample

3 BIOST 536 Lecture 11 3 Small sample sizes Logistic regression LR tests, odds ratio estimates, confidence intervals depend on asymptotic large-sample results May not work well for small samples May not even be able to get estimates in some cases if a category has all cases or all controls Sir DR Cox proposed some small sample exact logistic regression methods in his 1970 text Analysis of Binary Data Not computationally feasible until an algorithm developed by Hirji, Mehta, and Patel (1987) reduced computations (programs marketed as StatXact and LogXact) Exact logistic regression uses the sufficient statistics for all covariates in the model: Condition on the sufficient statistics and consider all permutations of the data consistent with the sufficient statistics Can derive estimates and confidence intervals

4 BIOST 536 Lecture 11 4 Small sample sizes Computation can be extensive Can stratify by variables that we control for Methods now included in SAS and Stata (Version 10 on?) Small dose escalation example Too small for ordinary logistic regression DoseDeathsN 003 103 203 303 413 523

5 BIOST 536 Lecture 11 5 Small sample sizes Do this example in Stata using exact logistic regression (exlogistic command) Do an incorrect standard logistic regression first Wald test and LR disagree

6 BIOST 536 Lecture 11 6 Small sample sizes Exact logistic regression does show a significant relationship of deaths with dose and gives odds ratio and permutation-based confidence intervals Note sufficient statistic is

7 BIOST 536 Lecture 11 7 Small sample sizes – Example 2 Two binary covariates Only 3 outcomes observed First consider Fisher’s exact test to relate A to outcome Set up the data using frequency counts ABYN 0011 0102 1018 11121

8 BIOST 536 Lecture 11 8 Small sample sizes – Example 2 Same answer with exact logistic regression Now consider both covariates together

9 BIOST 536 Lecture 11 9 Small sample sizes – Example 3 Crossover design  Same individuals get tested in all treatments  Outcome is recorded after each treatment  Treatment effect is assumed to wash out quickly after outcome is measured  Order of treatments may still matter Example has 15 individuals undergoing three treatments but in different orders

10 BIOST 536 Lecture 11 10 Small sample sizes – Example 3 Drug: 0 Placebo; 1 Drug A; 2 Drug B Treat time and drug as categorical variables Need to group observations within individual (all comparisons are within individual)

11 BIOST 536 Lecture 11 11 Small sample sizes – Example 3 Drug A is significantly different than Placebo Drug B has higher odds ratio than Placebo, but is not statistically significant Time effects are not strong Have accounted for the correlation within individual by grouping Conditioning methods used extensively later

12 BIOST 536 Lecture 11 12 More on confounding Confounder is a covariate that is related to the outcome as well as the primary risk factor or scientific variable of interest “Confounding is the distortion of a disease/exposure association brought about by the association of other factors with both disease and exposure, the latter association with disease being causal” Breslow & Day (1980) “If any factor either increasing or decreasing the risk of disease besides the characteristic or exposure under study is unequally distributed in the groups that are being compared with regard to the disease, this itself will give rise to differences in disease frequency in the compared groups. Such distortion, termed confounding, leads to an invalid comparison” Lilienfeld & Stolley (1994)

13 BIOST 536 Lecture 11 13 More on confounding Criteria for a confounding factor (Rothman & Greenland, 1998) 1. Confounding factor must be a risk factor for the disease 2. Confounding factor must be associated with the exposure under study in the source population (the population at risk from which the cases are derived) 3. Confounding factor must not be affected by exposure or the disease. In particular, it cannot be an intermediate step in the causal path between the exposure and the disease Choosing confounders for statistical adjustment Choice should be based on a priori considerations Study design/protocol specifies particular exposure x disease association under investigation Confounders selected/measured based on their role as known risk factors for disease

14 BIOST 536 Lecture 11 14 More on confounding Best not to select based on internal study results Selecting on the basis of statistical significance with outcome can leave residual confounding Selecting on change in association of exposure and outcome may not lead to correct inference Reporting results Give unadjusted estimates Give estimates adjusted for known primary risk factors Give estimates adjusted for primary and secondary risk factors How do we adjust?

15 BIOST 536 Lecture 11 15 Paradigms for controlling for confounding Experimental methods Hold all other relevant factors constant Randomly allocate subjects to treatments Statistical approaches for controlling for confounding 1. Estimate conditional treatment effects holding values of confounders constant Assume constant effect measure within strata – confounders are not effect modifiers Indirect standardization Mantel-Haenszel summary odds ratio in stratified analyses Get adjusted estimates using logistic regression Traditional method of adjusting for confounding involves comparison of unadjusted versus adjusted estimates Sometimes called “summarized effect measure” (Newman, 2001)

16 BIOST 536 Lecture 11 16 Paradigms for controlling for confounding 2. Estimate marginal treatment effects under simulated randomization Randomization assumes equal distribution of potential confounders among treatment (exposure) groups Treatment effects measured by contrasting marginal distributions of response Direct standardization of rates or proportions Simulates randomized experiment by fixing the distribution of the confounder to be equal across treatment groups Compares marginal measures of response between “fixed” treatment groups Less dependent on modeling assumptions, but less stable statistically and less generalizable to other populations with different confounder distributions

17 BIOST 536 Lecture 11 17 Paradigms for controlling for confounding “Causal” analysis of unobserved (“counterfactual”) responses that would have been observed if subjects had been assigned to another treatment Treatment/exposure effects measured by contrasting marginal distributions of responses (both observed and counterfactual) between treatment groups Confounding controlled by use of inverse probability weighting of observed responses to compensate for missing counterfactual responses Example: Probability that treated response is observed is equal to the probability of treatment estimated by logistic regression of treatment category on confounders (“propensity score”) Assumption of no unmeasured confounders equivalent to assuming that unobserved (counterfactual) responses are “missing at random” in sense of Little and Rubin (1987)

18 BIOST 536 Lecture 11 18 Direct standardization Compare response rates under different scenarios where both treatments are applied to equivalent populations assumed to equal the distribution of 1. Treatment 1 group 2. Treatment 2 group 3. 50% Treatment 1 and 50% Treatment 2 4. Some other arbitrary population  Difference depends on how population is standardized  Answers “What would be the difference if …”

19 BIOST 536 Lecture 11 19 Causal models for binary outcome data Assume that everyone has two possible binary outcomes, Y 1 if they received treatment (or were exposed) and Y 0 if not treated (or not exposed) May be written as follows to emphasize that these are the outcomes that would occur if assigned to treatment or not Counterfactual nature of Y occurs because only one of Y 1 and Y 0 can be observed Define R to the the random variable that indicates whether a subject receives treatment (R=1) or not (R=0) R=1 indicates a subject was selected for treatment R and the counterfactual Y may be statistically correlated Observed binary outcome is

20 BIOST 536 Lecture 11 20 Causal models for binary outcome data Fundamental problem of causal inference is that difference in expected outcome of treating everyone versus treating no one (LHS) does not equal difference in expected outcomes among those actually treated versus not treated due to bias in allocation of treatment to subjects Confounding is present if there is not equality between the LHS and RHS of expression (1) If we randomized, then R and the counterfactual Y are independent, and the LHS may be estimated directly and there is no confounding Without randomization, we cannot be sure if confounding is present or not

21 BIOST 536 Lecture 11 21 Causal models for binary outcome data May be willing to assume that R is independent of the counterfactual Y within strata formed by Z, a composite of measured confounders, i.e. R and Y are conditionally independent given Z  This is an assumption and not verifiable from the data  May be a good assumption if randomization was carried out within strata If the assumption of conditional independence is true given Z

22 BIOST 536 Lecture 11 22 Causal models for binary outcome data Numerator of probability is a standard logistic regression model for outcome given observed treatment and covariates Denominator is the probability of receiving that treatment given the covariates Suggest we can estimate these probabilities by using inverse probability weighting (IPW), estimating selection for treatment within strata IPW results in a synthetic or pseudo-population where treatment (exposure) and the confounders are uncorrelated Marginal (or crude) measures of treatment effect within the pseudo-population constitutes the causal effect of interest Direct standardization of effect measure is conceptually and algebraically identical to this marginal causal effect

23 BIOST 536 Lecture 11 23 Example (Robins, Hernan, & Brumback, 2000)

24 BIOST 536 Lecture 11 24 Example (Robins, Hernan, & Brumback, 2000)

25 BIOST 536 Lecture 11 25 Example (Robins, Hernan, & Brumback, 2000) Note that R and Z are unassociated and that the pseudo- population is twice the size of the original sample Marginal risk difference is which equals the risk difference found by direct standardization to a population that has the same fractions in each stratum as the original sample pooled over treatment (or exposure) Marginal (causal) odds ratio

26 BIOST 536 Lecture 11 26 Example (Robins, Hernan, & Brumback, 2000) Crude risk difference is Crude odds ratio Note standard errors not shown for the IPW weighted results Stata can weight inversely by “sampling probabilities” using pweight Causal modeling is an area of research interest currently

27 BIOST 536 Lecture 11 27 Propensity scores Causal inference requires no association between treatment (exposure) and counterfactual outcome Y conditional on Z What if Z is multidimensional with continuous components, can we find a function of Z such that conditioning on Z, will suffice to meet this independence condition? Answer: The propensity score can satisfy this independence (Rosenbaum & Rubin, 1983) Find a model for exposure given covariate vector Z Stratify or match on estimated propensity score Estimated association of exposure and disease is a summary over propensity score strata and not necessarily equal to the causal effect Fine matching may be difficult but crude matching or modeling using the propensity score may allow residual confounding


Download ppt "BIOST 536 Lecture 11 1 Lecture 11 – Additional topics in Logistic Regression C-statistic (“concordance statistic”)  Same as Area under the curve (AUC)"

Similar presentations


Ads by Google