Download presentation
Presentation is loading. Please wait.
Published byMelinda Marilynn Jones Modified over 9 years ago
1
Week 7: General linear models Overview Questions from last week What are general linear models? Discussion of the 3 articles
2
Generalized linear models (GLM) Broad term that encompasses all types of regression models Logistic and linear regression are the most common types of GLMs Includes both continuous and binary response variables
3
Components of GLMs Random component; the outcome or response variable -can be binary (yes/no) -continuous -count or rate Systematic component: the exposure or explanatory variables -can be binary, continuous, or categorical -includes interaction terms
4
Components of GLMs Link: specifies how the outcome and explanatory variables are linked -for continuous variables it is usually a direct or identity link -for binary variables it is usually a log link -for rates that follow a Poisson distribution it is usually a loglinear link
5
Back to the mathematical model Y’ (known as Y prime) is the predicted value on the outcome variable (the random or outcome component) β 1 is the coefficient assigned through regression X 1 is the unit of the exposure variable (systematic component) Y’ = A + β 1 X 1 + β 2 X 2 + β 3 X 3 The link function tells you how the two are related (linear or log relationship)
6
How do we know which model to use? The model selection depends mostly on the distribution of the outcome variable For continuous variables we use linear regression with the identity link For binary variables we use logistic regression with the logit link For count data and rates we use poisson regression with the loglinear link
7
Maximum likelihood model fitting Most poisson regression models, like logistic regression models, use the maximum likelihood model to fit regression models The log-likelihood is calculated based on predicted and actual outcomes A good model has a NON-significant LL A goodness-of-fit chi-square is calculated (usually compares a constant-only model to the one you created) -2LL in null model - -2LL in your model with df = number of exposure variable A good model has a significant goodness of fit
8
Cluster sampling Sometimes we need to recruit research participants in groups or clusters Examples include schools, hospitals, communities Can be very efficient BUT people in one cluster may be more like each other than people in other clusters sample then not independent
9
Cluster sampling con’t We need to adjust our confidence intervals to reflect the non-independent nature of the sample Calculate an inter-class correlation coefficient Need to take this into account when calculating sample size and designing studies SPSS can’t do cluster analyses
10
For next week Think about questions/issues related to data analysis
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.