Skip to content

Calculating confidence intervals for parameter estimates #145

Answered by codeanticode
codeanticode asked this question in Q&A
Discussion options

You must be logged in to vote

The MCAP calculation of the CIs is working pretty nicely! However, I have some questions regarding the quadratic fit when the maximum of the loglik is near the edge of the parameter range. Consider the following extreme case, where the parameter is bounded to the [0, 1] interval and the loglik maximum is very close to 0. Using a lambda smoothing of 1, the maximum of the quadratic function falls outside the range:

so the CI is undefined. Lowering lambda to 0.75 starts to look better:

but the CI is too wide. Only lowering a lot, to 0.3, I get a reasonable 95% CI of (0.02, 0.12):

I also thought of applying the logit transformation to extend the range to -inf, +inf. So here you have the co…

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@kingaa
Comment options

Comment options

You must be logged in to vote
2 replies
@ionides
Comment options

@ionides
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@ionides
Comment options

@codeanticode
Comment options

@kingaa
Comment options

@codeanticode
Comment options

Answer selected by kingaa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
3 participants