count data Flashcards
what distribution does count data typically present?
poisson distribution
what are the two types of count data?
- Count data – number of events
- Rate data – number of events reported per year
prior assumptions for poisson regression?
- Mean and variance is the same
- If true the scaling parameter (Residual deviance/degrees of freedom) should be close to 1
what distribution should we use if the scailing parameter is 1 vs if its large
poisson distribution
if large, negative binomial distribution
what is a scailing parameter?
Residual deviance/degrees of freedom
in conut data, what do we use to measure the treatment effect
Incidence rate ratios
what type of count data is used for poission regression
both count and rate data
interpret: poisson regression. outcome variable numebr of AE’s reported
IRR = 0.984
the Support group has 0.98 less AEs reported than the Active
IRR = 0.984, shows the decreased number of AE’s in treatment group
how can we reframe this to show the increased number of AE’s in control?
1/0.984 = 1.016, control had 1.02 more reported AEs than treatment group
what is the Equivariance property in poission regression?
Poisson regression has a unique property. The Mean of a poission distributed variable must be equal to its variance
before we fit the non-negative discrete outcome to the regression model what must we do?
Transform the variable.
Transform the variable. take natural log of the outcome
why transform
Because non negative discrete data tends to give us a positive skew. We want the outcome normally distributed. Transforming the variable gives it a normal distribution.
Second reason – for the data to take on a linear form. Before it only takes on values 0 or 1 but now can take a range of deccimals even between that. Just puts it on a linear scale
when we conduct poisson regression and after having calculated the coefficients, what do we need to do to them?
Transform them back using eulers number (exponential function)
Need to do this to interpret them
e(a + b)
e(a x b)
e(a - b)
e(a + b)
–> e^a x e^b
e(a x b)
–> (e^a )b OR (e^b a
e(a - b)
e^a / e^b
what is a consequence of doing poisson regression without transforming the outcome first?
Might make a negative prediction
Imaging predicting the number of events in 1 group and making a negative prediction… honey this don’t make sense!