-
Notifications
You must be signed in to change notification settings - Fork 18
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
Issue 112 jackknife #113
Issue 112 jackknife #113
Conversation
…e jackknife variance estimator.
…knife and variance_bootsrap)
…`PLN()`, based on problems reported in #112.
…t-treatment functions).
- bump version number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comment on when/how displaying messages
R/PLNfit-class.R
Outdated
@@ -205,13 +209,17 @@ PLNfit <- R6Class( | |||
}, | |||
|
|||
variance_jackknife = function(Y, X, O, w, config = config_default_nlopt) { | |||
cat("\n Computing jackknife variance estimator", sep = "\n") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a condition to display the message (based on the config argument) ??
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Argh, this a leftover from my debugging session. I'm inclined to remove it completely. Do you think we should keep it (if so, I'll add the condition and do the same for bootstrap) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removing is perfectly fine.
…cking the package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, you should also add an entry into the _pkgdown.yml file to avoid the corresponding action to fail.
For instance, here :
https://github.com/PLN-team/PLNmodels/blob/2657e506675ad26e77df94f9c40f02ae11aa1042/_pkgdown.yml#L110C39-L110C39
(and you could remove one of the redundant 'rPLN
' entry by the way...)
This PR fixes #112 by
Jackknife and bootstrap variance / sd estimators returned with
standard_error(myPLN, "bootstrap")
orstandard_error(myPLN, "jackknife")
are now identical to the ones computed "manally" with repeated call toPLN()
For @jchiquet, you can ignore all commits made before [df51164] / 17th of November, they have been reverted back in further commits.