Skip to content

Commit

Permalink
- [docs]: #102 wrap equations in \eqn{} instead of $ $
Browse files Browse the repository at this point in the history
  • Loading branch information
egouldo committed Sep 14, 2024
1 parent 0f3e6c5 commit 580ce6d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/conversion_2.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#' @param se Standard error of the `beta` estimate, numeric vector of length 1
#' @param response_transformation Character string describing transformation
#' @param link_fun Character string describing link function
#' @param sim Number of simulations to use during back-transformation. Defaults to $10000$.
#' @param sim Number of simulations to use during back-transformation. Defaults to `10000`.
#'
#' @return The outputs of a back-transformation function, see family back-transformations
#' @export
Expand Down
2 changes: 1 addition & 1 deletion R/make_param_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#'
#' @details # Note
#' Currently variable names of `analysis_data` must not contain `.` because this character is used to split the `variable` from the `parameter` during `pivot_longer()`
#' @seealso The table from this function is used to standardize out-of-sample predictions $y_i$ in [pred_to_Z()]
#' @seealso The table from this function is used to standardize out-of-sample predictions \eqn{y_i} in [pred_to_Z()]
make_param_table <- function(analysis_data, na.rm = TRUE) {
out <- analysis_data %>%
ungroup() %>%
Expand Down
2 changes: 1 addition & 1 deletion R/multi_level_mod_calcs.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ calc_I2_ml <- function(fitted_model) {
}

#' Apportion heterogeneity of a multi-level meta-analytic model
#' @description Estimates how much the total variance $I^2$ can be attributed to between- and within- cluster heterogeneity separately.
#' @description Estimates how much the total variance \eqn{I^2} can be attributed to between- and within- cluster heterogeneity separately.
#' @details From [http://www.metafor-project.org/doku.php/tips:i2_multilevel_multivariate](http://www.metafor-project.org/doku.php/tips:i2_multilevel_multivariate)
#' @param fitted_model
#'
Expand Down
3 changes: 1 addition & 2 deletions R/prepare_ManyEcoEvo_yi.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
#' @param all_review_data Review data for all `dataset`s contained in `master_data_raw`, generated by `prepare_review_data`.
#' @param all_prediction_data Prediction data for all `dataset`s contained in a `tibble`
#' @param ManyEcoEvo ManyEcoEvo data generated by `prepare_ManyEcoEvo`
#' @return A tibble of ManyEcoEvo analyst response data with out-of-sample predictions ($y_i$).
#' @return A tibble of ManyEcoEvo analyst response data with out-of-sample predictions (\eqn{y_i}).
#' @export
#' @family targets-pipeline functions
#' @family Multi-dataset Wrapper Functions

prepare_ManyEcoEvo_yi <- function(master_data_raw,
master_raw_metadata,
all_prediction_data) {
Expand Down
2 changes: 1 addition & 1 deletion R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ subset_fns_Zr <- function() { # TODO update calling of this fn (switch to fn rat
#'
#' @description Generates a list of functions that are used to subset the
#' processed ManyEcoEvo dataset (e.g.`data(ManyEcoEvo_results`) containing
#' out-of-sample predictions $y_i$.
#' out-of-sample predictions \eqn{y_i}.
#'
#' @details
#' The subset functions are used to filter out predictions that are not
Expand Down

0 comments on commit 580ce6d

Please sign in to comment.