Skip to content
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

Improve documentation for new design, continuation of draft PR #49 #54

Merged
merged 63 commits into from
Nov 1, 2022

Conversation

iuliadmtru
Copy link
Contributor

This is a continuation of my draft PR #49 which comes from a different branch (docs_improve instead of design_update). I will close PR #49 and continue working on this PR.

iuliadmtru and others added 24 commits September 7, 2022 16:14
Improved SRS Design with args error checking, better types
Design update merge Stratified Sample mean total and variance estimators
Add test cases and change `...` to `reduce`
@iuliadmtru
Copy link
Contributor Author

I think I messed up using git.. The code is fine, but the history is all cluttered. Sorry about that! :(

@iuliadmtru iuliadmtru marked this pull request as ready for review October 31, 2022 19:59
@codecov-commenter
Copy link

Codecov Report

Merging #54 (72ce5a1) into design_update (aa0715a) will decrease coverage by 17.42%.
The diff coverage is 15.88%.

❗ Current head 72ce5a1 differs from pull request most recent head 93c686c. Consider uploading reports for the commit 93c686c to get more accurate results

@@                Coverage Diff                 @@
##           design_update      #54       +/-   ##
==================================================
- Coverage          55.26%   37.83%   -17.43%     
==================================================
  Files                 12       14        +2     
  Lines                266      370      +104     
==================================================
- Hits                 147      140        -7     
- Misses               119      230      +111     
Impacted Files Coverage Δ
src/dimnames.jl 100.00% <ø> (ø)
src/ht.jl 0.00% <0.00%> (ø)
src/show.jl 0.00% <0.00%> (ø)
src/svyboxplot.jl 50.00% <ø> (ø)
src/svyby.jl 0.00% <ø> (ø)
src/svydesign.jl 57.89% <ø> (+12.28%) ⬆️
src/svyglm.jl 97.50% <ø> (+14.52%) ⬆️
src/svyhist.jl 57.89% <ø> (-36.85%) ⬇️
src/svyplot.jl 50.00% <ø> (ø)
src/svymean.jl 11.11% <5.35%> (-38.89%) ⬇️
... and 9 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@iuliadmtru
Copy link
Contributor Author

iuliadmtru commented Oct 31, 2022

This is a very long PR containing documentation work. It is not completely up to date (or at least it won't be up to date when PR #69 is merged). I think we can manage the conflicts.

Edit: I added more details about the changes I made.

  • All doctests pass now and are correct. They are updated according to the new design. Docstrings can be further improved by adding examples that use datasets other than api.
  • The docs/src/index.md file has been changed to resemble documentation pages from other Julia packages. It is now structured to show a short description of the package, the index and API of package functions and types.
  • example.md is now well structured and contains a tutorial on using the package. It is not complete, it needs great improvement.
  • I added descriptive comments at some places in the source code. More comments ideally should be added.

@@ -0,0 +1,17 @@
# TODO: add docstrings
function HorwitzThompson_HartleyRaoApproximation(y::AbstractVector, design::AbstractSurveyDesign, HT_total)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are these modifications part of this PR?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These come from my git mess up. I merged this branch with the design_update branch at some point in a wrong way.


# StratifiedSample

function svymean(x::Symbol, design::StratifiedSample)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also shouldn't be part of this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is the same git mess up.

@ayushpatnaikgit ayushpatnaikgit merged commit f2f0042 into xKDR:design_update Nov 1, 2022
@iuliadmtru iuliadmtru deleted the docs_improve branch November 4, 2022 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants