-
Notifications
You must be signed in to change notification settings - Fork 19
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
New data structures to support multiple replicate methods. #297
Merged
Merged
Changes from 10 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
6346972
Adding new structs for difference replicate methods, and exporting them.
codetalker7 ca964b1
Incorporating inference method to the `ReplicateDesign` struct, and
codetalker7 be94678
Incorporating inference method in `bootweights`.
codetalker7 084c900
Incorporating inference method in `jackknifeweights`.
codetalker7 662d356
Forcing `ReplicateType` to be a subtype of `InferenceMethod`.
codetalker7 95803b2
Correcting docstrings in `src/SurveyDesign.jl`.
codetalker7 dfc4f4a
Fixing documentation for `bootweights` and `jackknife.jl`. Also forcing
codetalker7 b1b3eb5
Adding documentation for the inference method types.
codetalker7 e9acc5d
Minor fixes in tests to incorporate the inference method types.
codetalker7 69b7aff
Added the inference method types to the API reference.
codetalker7 67be0b1
Renaming `jackknife_variance` to `variance`.
codetalker7 f11c6c6
Minor correction; qualifying the `variance` method to `Survey`'s
codetalker7 93d23db
Removing redundant `mean` function from `mean.jl`, and moving it to the
codetalker7 aa4cd67
Minor change; changing column name from `mean` to `estimator` in
codetalker7 1d9bf3e
Adding the `mean` function back, which now uses the `variance` function.
codetalker7 cd8554a
Minor change in `mean` function; renaming `estimator` column to `mean`.
codetalker7 8910308
Correcting test for `jackknife`.
codetalker7 feef09b
Minor change in docstring.
codetalker7 79b4c39
Minor fix in docstring.
codetalker7 64019c6
Rewriting `quantile` using `variance`.
codetalker7 d99f389
Rewriting `total` using `variance`.
codetalker7 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
It should just be called variance. There should be 2 dispatches.
variance(x::Symbol, func::Function, design::ReplicateDesign{JackknifeReplicates})
variance(x::Symbol, func::Function, design::ReplicateDesign{BootstrapReplicates})
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.
Okay, but we don't have a
variance
method forBootstrapReplicates
method yet, do we?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.
Also, should I rewrite the mean function using multiple dispatch now, or should that be done as a separate PR?
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.
We should rewrite the functions now.
And we need a variance function for
BootstrapReplicates
. It's pretty simple, it's just the simple variable of the estimates.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.
Okay. Also, just to confirm: haven't we already implemented the variance function for
BootstrapReplicates
in themean
function in line 48 of this file?: https://github.com/xKDR/Survey.jl/blob/main/src/mean.jlSo we should probably get rid of this
mean
function right?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.
Yes, we should get rid of it, and
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.
Done