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

Add impute() functions for imputation #35

Merged
merged 5 commits into from
Nov 14, 2024
Merged

Add impute() functions for imputation #35

merged 5 commits into from
Nov 14, 2024

Conversation

mnwright
Copy link
Member

@mnwright mnwright commented Nov 7, 2024

Example:

# Generate some missings
iris_na <- iris
for (j in 1:ncol(iris)) {
  iris_na[sample(1:nrow(iris), 5), j] <- NA
}

# Parallelization with doParallel
doParallel::registerDoParallel(cores = 2)

# Single imputation
iris_imputed <- arf::impute(iris_na, m = 1)

# Multiple imputation
iris_imputed <- arf::impute(iris_na, m = 20)

@mnwright mnwright merged commit f9074b8 into main Nov 14, 2024
6 checks passed
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.

1 participant