initialize_x: intialize_x

View source: R/initialize_x.R

initialize_xR Documentation

intialize_x

Description

Initialize all x values to the value of concordance

Usage

initialize_x(Model, concordance = 1, cores = 1, verbose = FALSE)

Arguments

Model

a Model object of class gemini.model

concordance

a numeric value to initialize x

cores

a numeric indicating the number of cores to use. See gemini_parallelization default 1.

verbose

default FALSE

Value

a Model object of class gemini.model including new slots for x values and internal-use hashes

Note

As there is much hashing involved in this function, this tends to be computationally intensive. As such, we have enabled parallelization of most hash steps, but this may still be rate-limited by the amount of memory consumed.

Examples

data("Model", package = "gemini")
Model %<>% initialize_x()


sellerslab/gemini documentation built on Dec. 5, 2022, 8:56 a.m.