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
{{ message }}
Repository navigation
ENH: score confidence interval for GLM, discrete #2722
score tests are doing quite well overall, score confidence intervals are emphasized in some of the two sample proportion comparisons and are doing also reasonably well for medium sample sizes.
Calculation: see references on two sample proportions.
Essentially we are calculating two one-sided score-tests and search for the Null hypothesis parameter.
In terms of implementation and effort required this should be similar to profile likelihood confidence intervals. An efficient implementation might be able to use the offset and doesn't need to change exog in each case, if we want the confidence interval for a single parameter. (I guess changing the constant for affine restrictions would work in the constrained transformed model, but requires adjusting the constraints transformation but not of the exog, AFAICguess.)
Note: AFAICS the above calculation can be used to speed up also the calculation for profile loglikelihood, likelihood ratio test and profile likelihood confidence intervals.
Instead of redoing the full affine transformation each time, we can keep the linearly transformed exog and only need to recalculate the offset/constant part.
It's simple for exclusion restrictions, transformed exog is just with dropped columns, but work also for any affine constraints: R @ params = r
Do we get asymmetric confidence intervals for skewed distributions?
Wald confidence intervals are symmetric for parameters (using normal or t), but we have the nonlinear link transformation for confidence intervals for the prediction (expected value, mean).
Profile and score_confidence intervals might also be asymmetric for parameters (I guess they are in GLM for non-gaussian distribution)
aside:
GLM QMLE literature emphasizes that mean can be consistently estimated with misspecified distribution.
Optimization (IRLS) and the mean parameter estimates only depends on mean and variance functions.
Question: How does the distributional assumption, i.e. family, affect inference in small to medium samples?
e.g. do we get inference that takes the skewness of a family into account, and not just mean and variance?
Similar to the hypothesis test literature:
What is the best GML-QMLE way to get statistics, like hypothesis tests, confidence intervals. for skewed and other non-normal data?
I'm looking again at two sample comparison for count data like Poisson and NegBin. #8138
With robust cov_type or excess dispersion in score_test, we would have robust intervals (if we can implement those).
Activity
josef-pkt commentedon Dec 5, 2015
Note: AFAICS the above calculation can be used to speed up also the calculation for profile loglikelihood, likelihood ratio test and profile likelihood confidence intervals.
Instead of redoing the full affine transformation each time, we can keep the linearly transformed exog and only need to recalculate the offset/constant part.
It's simple for exclusion restrictions, transformed exog is just with dropped columns, but work also for any affine constraints: R @ params = r
josef-pkt commentedon Jan 2, 2016
PR #1791 seems already to use offset shortcut for profile likelihood confidence interval.
josef-pkt commentedon Mar 21, 2017
#2041 main SUMM issue for score/LM test
josef-pkt commentedon Feb 29, 2020
bump
Do we get asymmetric confidence intervals for skewed distributions?
Wald confidence intervals are symmetric for parameters (using normal or t), but we have the nonlinear link transformation for confidence intervals for the prediction (expected value, mean).
Profile and score_confidence intervals might also be asymmetric for parameters (I guess they are in GLM for non-gaussian distribution)
Fagerland, Morten W., and Leiv Sandvik. 2009. “Performance of Five Two-Sample Location Tests for Skewed Distributions with Unequal Variances.” Contemporary Clinical Trials 30 (5): 490–96. https://doi.org/10.1016/j.cct.2009.06.007.
Ng, Victoria K.Y., and Robert A. Cribbie. 2017. “Using the Gamma Generalized Linear Model for Modeling Continuous, Skewed and Heteroscedastic Outcomes in Psychology.” Current Psychology 36 (2): 225–35. https://doi.org/10.1007/s12144-015-9404-0.
aside:
GLM QMLE literature emphasizes that mean can be consistently estimated with misspecified distribution.
Optimization (IRLS) and the mean parameter estimates only depends on mean and variance functions.
Question: How does the distributional assumption, i.e. family, affect inference in small to medium samples?
e.g. do we get inference that takes the skewness of a family into account, and not just mean and variance?
Similar to the hypothesis test literature:
What is the best GML-QMLE way to get statistics, like hypothesis tests, confidence intervals. for skewed and other non-normal data?
josef-pkt commentedon Feb 23, 2022
bump again
I'm looking again at two sample comparison for count data like Poisson and NegBin. #8138
With robust cov_type or excess dispersion in score_test, we would have robust intervals (if we can implement those).
josef-pkt commentedon Feb 13, 2023
The dev code for the basic score confint (and LR confint) is in #4798 (comment)