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

elaborate details of some functions #54

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
8 changes: 4 additions & 4 deletions R/data-process.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#' data_weighted <- gen_data_mean(data)
#' ```
#'
#' 3. **`gen_data_weighted_rf`**: Calculates the differences between intervention and baseline values for various metrics.
#' 3. **`gen_data_weighted_rf`**: Calculates the differences between intervention and baseline values for risk factors.
#' ```r
#' data_weighted_rf_wide_collapse <- gen_data_weighted_rf(data_weighted)
#' ```
Expand All @@ -30,7 +30,7 @@
#' data_weighted_burden_wide_collapse <- gen_data_weighted_burden(data_weighted)
#' ```
#'
#'6. **`gen_data_weighted_burden_spline`**: Performs data smoothing.
#'6. **`gen_data_weighted_burden_spline`**: Performs data smoothing for burden of disease, when necessary. For instance, with only a few simulations, there can be positive values in difference in burden of disease.
#' ```r
#' data_weighted_burden_spline <- gen_data_weighted_burden_spline(data_weighted_burden_wide_collapse)
#' ```
Expand Down Expand Up @@ -113,7 +113,7 @@ gen_data_weighted <- function(data) {

#' Calculate Differences for Various Metrics
#'
#' This function calculates the differences between intervention and baseline values for various metrics.
#' This function calculates the differences between intervention and baseline values for risk factors.
#'
#' @param data_weighted A data frame containing weighted mean values for various metrics.
#' @return A data frame with differences between intervention and baseline values for various metrics.
Expand Down Expand Up @@ -281,7 +281,7 @@ gen_data_weighted_burden <- function(data_weighted) {

#' Perform data smoothing
#'
#' This function performs data smoothing.
#' This function performs data smoothing for burden of disease, when necessary. For instance, with only a few simulations, there can be positive values in difference in burden of disease.
#'
#' @param data_weighted_burden A data frame containing weighted values for burden of disease.
#' @return A data frame with spline smoothing applied for burden of disease.
Expand Down
4 changes: 2 additions & 2 deletions man/DataProcessing.Rd

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

2 changes: 1 addition & 1 deletion man/gen_data_weighted_burden_spline.Rd

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

2 changes: 1 addition & 1 deletion man/gen_data_weighted_rf.Rd

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