-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SUMM: score tests and similar #2041
Comments
good read for link between conditional moment tests and score tests, although a bit dated: |
a reference as reminder: In general it's not easy to see what the maintained assumptions in a test are. Wooldridge tries to be robust to higher moment misspecification, Cameron Trivedi mix them up a lot more. correction: GMM based tests (cm-tests) might be easy, but "too robust". It might be difficult to add additional maintained assumptions to get less than fully robust tests. (tradeoff small sample performance and robustness) |
R package statmod has |
another model: goodness-of-fit in logistic matched case-control (i.e. Conditional Logit) looks a bit like a complement to Hosmer-Lemeshow because it only considers continuous variables. |
(random thought for categorical explanatory variables) FAQ: How do we do a score test for an interaction effect? score test conditions on included variables, but we need both z/t test for single parameters and chi2/F test for joint hypothesis. this is mainly a use case and example for multi-column joint tests, everything is generic, when we have the equivalent of t_test and wald_test for score/LM tests. One possible special issue: how do we create the raw design matrix for the interaction effect before conditioning, e.g. using patsy. Also if we don't remove collinearities, then we need to handle them in the score_test (e.g. adjust degrees of freedom based on rank) |
another reference, Ramalho, Esmeralda A., and Joaquim J. S. Ramalho. 2012. “Alternative Versions of the RESET Test for Binary Response Index Models: A Comparative Study*.” Oxford Bulletin of Economics and Statistics 74 (1): 107–30. doi:10.1111/j.1468-0084.2011.00654.x. |
SAS seems to have generalized/robust score_test for GEE/GLM #1739 (comment) |
to separate tests of CMT, normal instead of joint chisquare CMTNewey and CMTTauchen have ztest methods for the individual constraints. Can I use them for the a specification test for MLE, e.g. excess probability tests like zero-inflation or binned prob test in count models.? |
score_test robust to misspecification cov_type newer article I found (I didn't read it yet) Bera, Anil K., Yannis Bilias, Mann J. Yoon, Süleyman Taşpınar, and Osman Doğan. 2020. “Adjustments of Rao’s Score Test for Distributional and Local Parametric Misspecifications.” Journal of Econometric Methods 9 (1). https://doi.org/10.1515/jem-2017-0022. already referenced in #1163 (comment) They do not cite Boos which was my main reference I have problems finding the Boos article in issues and doesn't seem to be in docs Boos, Dennis D. "On generalized score tests." The American Statistician 46, no. 4 (1992): 327-333. |
I need a summary issue for the score_test, lagrange multiplier test, artificial regression, moment restriction tests
They are all similar or asymptotically the same with different assumption on robustness to misspecification. There are many open issues for this
#1163 basic issue
#1756 conditional moment restriction
#2054 score_tests with robust covariance assumptions
related:
RESET test for GLM, Logit, Probit (example also in Papke Wooldridge for proportion response model)
special cases
overdispersion test in Poisson (and related count models)
implementation*
what do we have available for a test?
two (or three) cases:
we have score_obs, score, hessian w.r.t. all parameters that we want to test
no distinction in handling score from parameters used in estimation from those under test
e.g. variable addition tests
cm_test
can be formulated as LM test in linear case, but I don't know how they fit in "generically"
issues on infrastructure
#2072 get_robustcov to be reused for score tests
artificial regression: Gauss-Newton regression of Davidson-MacKinnon
generic "one-step" estimators (see for example Newey McFadden 1994 Handbook of Econometrics
-> reuse Newton optimizer, iterative WLS results ?
multiple hypothesis, multiple testing
just an idea: using normal based score test for single restriction
simplest case: we have many possibly omitted variables that we want to test
we can test all of them at the same time - standard score test, like
results.wald_test
we could also test the individual restrictions/additions - like
results.t_test
questions: correlation of the omitted variables, jointly or in loop?
for example Pagan and Vella 1989 report separate t-statistics for a list of moment restrictions (omitted variables or heteroscedasticity)
Stata also reports separate tests with optional p-value correction in some of the estat specification tests after regress
Where are the score_test examples that I already did?
https://github.com/statsmodels/statsmodels/pull/1781/files#diff-724e15f4019b2a24906f6b271d67e370R433
Poisson overdispersion are not in repo
edit
variable addition score test: reduced rank #5364
We need to handle the case when some added variables are already implicitly included in the restricted model. GLM.score_test uses the full number of variables and not the rank of the addition.
(found while running an example for GAM in #5296 )
The text was updated successfully, but these errors were encountered: