-
Notifications
You must be signed in to change notification settings - Fork 303
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
Confidence level in augment.lm #949
Comments
This sounds like a good idea to me! re: the comment |
Just wanted to nudge this a bit. I'm updating my course materials one year after and this is unfortunately not correct yet. |
Hi @julian-urbano, @simonpcouch and @alexpghayes I would also like to nudge this topic along but I'm not sure about the interest level. I think that broom is fantastic and it's a great step in the right direction. However, being able to set the Recently, I highly recommended broom to colleagues but once I found out the state of play w.r.t. prediction intervals I've highly un-recommended it. Here's why. My colleagues wanted to study various prediction intervals 80%, 90% etc but they pointed out that the prediction intervals are always 95% which makes The documentation around I think broom is great but if standard options/arguments like If maintainers are interested, then I will have a go at a pull request. Comments most welcome! Cheers PS: Having produced both CIs and PIs for about 40 years now, then I would say that prediction intervals for new observations are often more useful than confidence intervals for the mean response (unless fixed at some arbitrary level of course). |
A PR adding a conf.level argument eventually passed to level would be
welcome. I would not pass ... though, or at least I'd want to think a
little more carefully if passing the dots might lead to some edge case
breakages.
…On Tue, Apr 12, 2022, 1:06 AM Peter Baker ***@***.***> wrote:
Hi @julian-urbano <https://github.com/julian-urbano>, @simonpcouch
<https://github.com/simonpcouch> and @alexpghayes
<https://github.com/alexpghayes>
I would also like to nudge this topic along but I'm not sure about the
interest level. I think that *broom* is fantastic and it's a great step
in the right direction. However, being able to set the level for a CI but
not a PI is a deal breaker for me and I believe it is a trap for the unwary.
Recently, I *highly recommended* *broom* to colleagues but once I found
out the state of play w.r.t. prediction intervals I've *highly
un-recommended* it. Here's why.
My colleagues wanted to study various prediction intervals 80%, 90% etc
but they pointed out that the prediction intervals are always 95% which
makes augment.lm essentially useless for them, and unfortunately they
couldn't work out how to make it work so they abandoned augment.lm and
rolled their own using predict.lm and level.
The documentation around ... is somewhat messy but the important problem
is that ... is not implemented. The documentation gives a heads up that
things can go wrong when options are chosen via ... which is perfectly
sensible. (However, given that ... isn't implemented for prediction, then
it is simply wrong). Am I missing something here?
I think *broom* is great but if standard options/arguments like level for
predict.lm simply aren't implemented when it appears that they are
available, then this seems dangerous to me.
If maintainers are interested, then I will have a go at a pull request.
Comments most welcome!
Cheers
Peter
PS: Having produced both CIs and PIs for about 40 years now, then I would
say that prediction intervals for new observations are often more useful
than confidence intervals for the mean response (unless fixed at some
arbitrary level of course).
—
Reply to this email directly, view it on GitHub
<#949 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADTBG26XT2N2BM4THQSGHILVEUHGHANCNFSM4SL43MOQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
This would definitely be a nice addition. I think most people use |
So another year has passed, and I decided to have a go at this and create a pull request, as suggested by @alexpghayes.
which seems to refer to the glossary on acceptable argument names. It looks like Does this mean that this issue will not be addressed anytime soon? How about forwarding |
You'll need to make a second PR to |
This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue. |
Hi!
I was checking
augment
to compute intervals, and wanted to use different confidence levels. I presumed this would be done via something likeconf.level=0.9
, thinking about howpredict
is used. However, the intervals are always the same, regardless of the confidence level.I looked at the code for
predict.lm
and found this line herebroom/R/stats-lm-tidiers.R
Line 136 in 8bd3835
I think it should read as follows
to forward other arguments, such as
conf.level
in this case.Thoughts?
The text was updated successfully, but these errors were encountered: