Skip to content

Commit

Permalink
update function description
Browse files Browse the repository at this point in the history
  • Loading branch information
elena-krismer committed Oct 13, 2024
1 parent fe991c4 commit 67a8f35
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
17 changes: 14 additions & 3 deletions R/impute_randomforest.R
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
#' Imputation of Missing Values Using Random Forest Imputation
#'
#' \code{impute_randomforest} performs imputation for missing values in the data using the random
#' forest-based method implemented in the \code{missForest} package. This method is particularly
#' useful for handling data with a mixture of categorical and continuous variables, as well as
#' handling non-linear relationships between variables.
#' forest-based method implemented in the \code{missForest} package.
#'
#' The function imputes missing values by building random forests, where missing values are
#' predicted based on other available values within the dataset. For each variable with missing
Expand All @@ -17,6 +15,19 @@
#' such as controlling the number of trees used in the random forest models or specifying the
#' stopping criteria. For a full list of parameters, refer to the \code{missForest} documentation.
#'
#' To enable parallelization, ensure that the `doParallel` package is installed and loaded:
#' ```
#' install.packages("doParallel")
#' library(doParallel)
#' ```
#' Then register the desired number of cores for parallel processing:
#' ```
#' registerDoParallel(cores = 6)
#' ```
#' To leverage parallelization during the imputation, pass `parallelize = "variables"`
#' as an argument to the `missForest` function.
#`
#'
#' Stekhoven, D.J., & Bühlmann, P. (2012). MissForest—non-parametric missing value imputation
#' for mixed-type data. Bioinformatics, 28(1), 112-118. https://doi.org/10.1093/bioinformatics/btr597
#'
Expand Down
1 change: 0 additions & 1 deletion man/assign_peptide_type.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/impute.Rd

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

18 changes: 15 additions & 3 deletions man/impute_randomforest.Rd

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

0 comments on commit 67a8f35

Please sign in to comment.