You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
question: Should the null model for llnull in count models also include exposure?
It doesn't currently
def llnull(self):
model = self.model
#TODO: what parameters to pass to fit?
null = model.__class__(model.endog, np.ones(self.nobs)).fit(disp=0)
return null.llf
I will have a test case later in my next robust cov PR. plus the Wald test addition #1104
right now I'm using the ships data from xtpoisson
"We have data on the number of ship accidents for five different types of ships (McCullagh and Nelder 1989, 205)."
If we want to fix it fast, for 0.5.1, then we could maybe reuse a current test case.
Activity
josef-pkt commentedon Dec 10, 2013
Looks like a bug.
From running an example, Stata looks like is using exposure in the ll-null, while in statsmodels ll-null is unchanged when we add exposure
jseabold commentedon Dec 10, 2013
Intuitively, I'd say yes, this is a bug.
jseabold commentedon Dec 10, 2013
If you have a test handy that would be helpful.
josef-pkt commentedon Dec 10, 2013
I will have a test case later in my next robust cov PR. plus the Wald test addition #1104
right now I'm using the ships data from xtpoisson
"We have data on the number of ship accidents for five different types of ships (McCullagh and Nelder 1989, 205)."
If we want to fix it fast, for 0.5.1, then we could maybe reuse a current test case.
josef-pkt commentedon Apr 20, 2014
Problem with exposure: we don't store "exposure" we store
log(exposure)TST: add failing test, bug statsmodels#1221
REF/ENH: add `_init_keys` to recreate model closes statsmodels#1221 c…
TST: add failing test, bug statsmodels#1221
REF/ENH: add `_init_keys` to recreate model closes statsmodels#1221 c…