1 / 36

Lecture 8: Generalized Linear Models for Longitudinal Data

Lecture 8: Generalized Linear Models for Longitudinal Data. Generalized Linear Models for Longitudinal Data. Generalized Linear Models: A Review The Logistic Regression Model Marginal model Random effects model Transition model Contrasting Approaches.

Download Presentation

Lecture 8: Generalized Linear Models for Longitudinal Data

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Lecture 8:Generalized Linear Models for Longitudinal Data

  2. Generalized Linear Models for Longitudinal Data • Generalized Linear Models: A Review • The Logistic Regression Model • Marginal model • Random effects model • Transition model • Contrasting Approaches Different assumptions about the correlation structure

  3. GLM Examples • Linear regression • Logistic regression • Poisson regression

  4. Note for GLMs • var(Yi) may be a function of i • Logistic: var(Yi) = i(1- i) • Poisson: var(Yi) = I • Logistic regression model • Marginal logistic regression model • Logistic model with random effects • Transition logistic model

  5. 1. Marginal Logistic Regression Model • Goal: To assess the dependence of respiratory infection on vitamin A status in the Indonesian Children’s Health Study

  6. Parameter Interpretation

  7. Correlation between binary outcomes Two options: • Specify pairwise correlations • Model association among binary data using the odds ratio Which is better? Option 2.

  8. 2. Logistic model with random effects Assume: • The propensity for respiratory infections varies across children, reflecting their different genetic predispositions and unmeasured influences of environmental factors • Each child has his/her own propensity for respiratory disease , but that the effect of vitamin A deficiency ( ) on this probability is the same for every child, i.e. • Given i, we further assume that the repeated observations for the ith child are independent of one another

  9. Logistic model with random effects (cont’d) = log odds of respiratory infection for a “typical” child (with random effect )

  10. Logistic model with random effects (cont’d) = odds of infection for a child with random effect when he/she is vitamin A deficient relative to when the same child is not vitamin A deficient = degree of heterogeneity across the children in the propensity of disease, not attributable to x Ratio of individual odds Ratio of population odds

  11. Random effects (RE) model: Basic ideas • There is natural heterogeneity across individuals in their regression coefficients, and this heterogeneity can be explained by a probability distribution • RE models are most useful when the objective is to make inference about individuals rather than the population average • represents the effects of the explanatory variables on an individual child’s chance of infection • …this is in contrast with the marginal model coefficients, which describe the effect of explanatory variables on the population average

  12. Parameter Interpretation of a Logistic Regression Model with Random Effects Note: The odds of respiratory infection for a hypothetical child with random effect Ui and with vitamin A deficiency, are equal to times the odds of respiratory infection for the same hypothetical child with random effect Uiwithout vitamin A deficiency.

  13. Parameter Interpretation of a Logistic Regression Model with Random Effects(cont’d) Compare the individual odds from the previous slide: …with the population average odds below:

  14. 3. Transition models for binary responses(a.k.a. Markov Models) • i.e. the chance of respiratory infection at time tij depends on explanatory variables, and also on whether or not the child had infection 3 months earlier = change in the log odds of infection for a unit change in x, among children with outcome yij-1 at the prior visit = ratio of the odds of infection among children who did and did not have infection at the prior visit

  15. Transition matrix We can also specify this logistic model via a transition matrix: Elements of matrix are “transition probabilities”, example:

  16. Parameter Interpretation of a Transition Logistic Regression Model Note: The odds of respiratory infection for a hypothetical child with outcome at the previous visit equal to yij-1with vitamin A deficiency are equal to times the odds of repiratory infection for the same hypothetical child with outcome at the previous visit equal to yij-1withoutvitamin A deficiency.

  17. In summary • Marginal model: describes the effect of explanatory variables on the chance of infection in the entire population. • Random effects model describes the effect of the explanatory variables on an individual chance of infection. • Transition model describes the effect of explanatory variables on the chance of infection adjusted by the outcome for respiratory infection at the prior visit.

  18. In summary (cont’d) Note that this transition model: is also a marginal logistic regression model for the sub-population of children who are free of infection at the previous visit.

  19. Contrasting Approaches • In linear models, the interpretation of β is essentially independent of the correlation structure. • In non-linear models for discrete data, such as logistic regression, different assumptions about the source of correlation can lead to regression coefficients with distinct interpretations. • Two examples: • Infant growth • Respiratory disease data

  20. Linear Regression Model:Infant Growth

  21. Linear Regression Model:Infant Growth (cont’d) In the linear case, it is possible to formulate the three regression approaches to have coefficients with the same interpretation. That is, coefficients from a random effect model and a transition model can have marginal interpretations as well.

  22. Linear Random Effects Model In the linear random effects model, the regression coefficients also have a marginal interpretation: …this is because the average of the rates of growth for individuals is the same as the change in the population average weight across time in a linear model. Note:

  23. Linear Random Effects Model (cont’d)

  24. Transition Model, AR(1):Infant Growth This form of transition model has coefficients which have a marginal interpretation

  25. In summary • Marginal model: describes the change in the average response for a unit change in xij for the entire population • Random effects model describes the change in the average response for a unit change in xij for a particular subject, and for the entire population • Transition model describes the change of the average response for a unit change in xijamong subjects with yij-1 in the prior visit

  26. In summary (cont’d) That is, these coefficients have the same interpretation!, and their numerical estimates will be very similar:

  27. A Simulation Example

  28. A Simulation Example (cont’d)

  29. A Simulation Example (cont’d)

  30. A Simulation Example (cont’d) However, the corresponding change in absolute risk differs depending on the baseline rate The population rate of infection is the average risk, which is given by:

  31. Implementation of Simulation Study

  32. If we use a marginal model… • In the marginal model, we ignore the differences among children and model the population average, i.e. P(Yij=1) rather than P(Yij = 1 | Ui) • We estimate the fraction of people with infection among the people with (or without) vitamin A deficiency: • Infection rate in the sub-group that has sufficient vitamin A deficiency is estimated to be:

  33. If we use a marginal model… (cont’d) • Odds ratio for vitamin A deficiency is: so that

  34. Figure 7.2. Simulation of risk of infection with and without dichotomous risk factor, for 100 children in a logistic model with random intercept. Population average risks with and without infection are indicated by the vertical line on the left. The Gaussian density for the random intercepts is shown below.

  35. Marginal Model vs. Random Effects • Marginal and Random Effects model parameters differ in the logistic model • Marginal: ratio of population odds • Random Effects: ratio of individuals’ odds • Marginal parameter values are small in absolute values than their random effects analogues • Parameters in transition models also differ from both the random effects and marginal model parameters

More Related