valid_idata_set: Validate and prepare idata data sets for simulation

View source: R/mrgindata.R

valid_idata_setR Documentation

Validate and prepare idata data sets for simulation

Description

This function is called by mrgsim() and friends to check and prepare input data sets for simulation. Users may also call this function to pre-validate data when the same data set is used for repeated simulation.

Usage

valid_idata_set(x, m, verbose = FALSE, quiet = FALSE)

Arguments

x

data.frame or matrix.

m

a model object.

verbose

logical.

quiet

if TRUE, messages will be suppressed.

Details

An error will be issued when

  • non-numeric data is found in columns sharing names with model parameters

  • a column is found that is internally classed, including columns that inherit from integer64 (see is.object())

Value

A numeric matrix with class valid_idata_set.

See Also

valid_data_set(), idata_set(), data_set()


mrgsolve documentation built on Oct. 18, 2024, 5:12 p.m.