fm_parallel_params: Calculate Parameters for Parallelization of Chains

View source: R/fm_utils.R

fm_parallel_paramsR Documentation

Calculate Parameters for Parallelization of Chains

Description

Calculates the number of chains per call to mice::mice() or mice::mice.mids(), the average number of calls chunked into a future, and the number of futures needed to satisfy the given arguments.

Usage

fm_parallel_params(m, chunk_size, maxit, seed)

Arguments

m

The total number of chains (imputations)

chunk_size

The average number of chains per future

Value

A list containing parameters n_chains (chains per call), n_calls (number of calls to mice()), chunk_size (number of calls per future), maxit (maximum number of iterations), and seed (RNG seed)


jesse-smith/futuremice documentation built on Nov. 24, 2023, 7:19 a.m.