par_stats: Function to run makeStats in parallel.

Description Usage Arguments Examples

Description

Works via parallel::mclapply()

Usage

1
par_stats(mod_list, stat_func = make_stats, ..., max = NULL)

Arguments

mod_list

A list model object of class lm or lmer/lmerTest.

stat_func

One of the following functions as bare names: makeStats (Default) makeCI, or makeFC, .

...

Arguments to pass through to stat_func.

max

The number of cores to use. Default (NULL) is half of total cores available. Can be specifed as integer or Inf(), to use all cores available.

Examples

1
2
3
4
5
6
7
## Not run: 
par_stats(mod_list) # equal to line below
par_stats(mod_list, makeStats)

par_stats(mod_list, makeStats, max = Inf) # use all cores

## End(Not run)

hemoshear/assayr2 documentation built on Nov. 8, 2019, 6:13 p.m.