Skip to content

Km/growth rate #92

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

Merged
merged 50 commits into from
Jul 5, 2022
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
eb206ef
Taken from Chloe's branch.
kenmawer May 6, 2022
a1b734c
Updated growth_rate with an example.
kenmawer May 9, 2022
8eb16cf
Made example much shorter.
kenmawer May 9, 2022
8bbbf78
Shortened growth_rate example.
kenmawer May 9, 2022
84eaba9
Shortened example for growth_rate after using document().
kenmawer May 9, 2022
cb65ca3
Updated examples to be more specific.
kenmawer May 10, 2022
c6a88f3
Added \n to last sprintf statement
May 10, 2022
a5780ed
Testing out creation of error message (note not yet refined)
May 11, 2022
2c84c10
Probs should be or
May 11, 2022
c3e32b8
Updated error message
May 11, 2022
7ba7434
Update error message again
May 11, 2022
2ca4022
Updated examples for less redundancy.
kenmawer May 12, 2022
330a649
Commit with updated files and fewer example redundancies.
kenmawer May 12, 2022
648ee62
Took out print statements that were used for testing
May 12, 2022
7c636a7
Took out print statement and clarified error message
May 12, 2022
dce69d4
Added error message to epi_slide fun to address issue #65.
May 12, 2022
c70b179
Merge branch 'main' of https://github.com/dajmcdon/epiprocess into km…
kenmawer May 13, 2022
575f7ef
Merge branch 'main' of https://github.com/dajmcdon/epiprocess into km…
kenmawer May 13, 2022
7ddcbbe
Updated with new dataset.
kenmawer May 13, 2022
a1a0ec2
Added testing and made stylistic changes as per pull request comments
May 13, 2022
a4bd060
Added testing for epi_slide and made stylistic changes to error message
May 13, 2022
d95a7b6
Added code to make edf and f
May 13, 2022
bcbd37a
Re-worded comment a bit
May 13, 2022
fa98b61
Created helper file for testing
May 14, 2022
84a4769
Merging to add helper script for epi_slide tests
May 14, 2022
29678d5
Made sure dplyr fun can be accessed in tests
May 14, 2022
d436ae9
Printed column names of DT as requested
May 14, 2022
74a10a9
Merge this branch with main as added final newline to archive print s…
May 14, 2022
8c1307a
Updated sprintf statement to better accomodate many cols
May 16, 2022
7e757ee
Deleted commented out old code
May 16, 2022
34b0b1d
Re-wrote explan. a bit.
May 16, 2022
75d6d68
Re-wrote explan. some more
May 16, 2022
434f7eb
Some minor re-wording
May 16, 2022
efe3a2d
More minor re-wording
May 16, 2022
cccfea9
Converted roxygen comments to Rd file
May 16, 2022
462b950
Moved helper file code to test file and deleted helper file
May 17, 2022
6f463b4
Fixed some arrangement of code
May 17, 2022
2999a9e
Simplified code a bit
May 17, 2022
b6d4dc1
R6 class
May 17, 2022
3d3b2a2
Update slide.R
rachlobay May 17, 2022
4df45a4
Unsure why that got deleted so re-add that import
rachlobay May 17, 2022
f94b87c
Merge pull request #7 from dajmcdon/epi_slide-error_message
dajmcdon May 25, 2022
6f31970
Merge pull request #8 from dajmcdon/epi-archive-print
dajmcdon May 25, 2022
d16d889
Merge pull request #9 from dajmcdon/epi_slide-f-param-doc
dajmcdon May 25, 2022
9943f84
Merge branch 'main' of https://github.com/dajmcdon/epiprocess into km…
kenmawer Jun 24, 2022
7864cdd
Updated examples from Chloe's comment.
kenmawer Jun 24, 2022
115fad6
Merge branch 'cmu-delphi/main' into km/growth_rate
kenmawer Jun 28, 2022
29c250d
Merge branch 'main' into km/growth_rate
kenmawer Jun 29, 2022
9407c90
No more errors!
kenmawer Jul 4, 2022
1b2c142
Merge branch 'km/growth_rate' of https://github.com/dajmcdon/epiproce…
kenmawer Jul 4, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions R/growth_rate.R
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,16 @@
#' user.
#'
#' @export
#' @examples
#' # California's growth rate in COVID cases
#' mutate(jhu_csse_daily, gr = growth_rate(time_value,cases))
#'
#' # Log scale, degree 4 polynomial and 6-fold cross validation
#' growth_rate(
#' x = jhu_csse_daily$time_value, y = jhu_csse_daily$cases,
#' log_scale = TRUE, ord = 4, k = 6
#' )

growth_rate = function(x = seq_along(y), y, x0 = x,
method = c("rel_change", "linear_reg",
"smooth_spline", "trend_filter"),
Expand Down
Binary file added data/ca_daily_cases.rda
Binary file not shown.
10 changes: 10 additions & 0 deletions man/growth_rate.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.