preprocess.ofv {mapbayr}R Documentation

Preprocess model and data for ofv computation

Description

Functions to generate arguments passed to compute_ofv. Arguments that are fixed between individuals are created once (preprocess.ofv.fix), while others are specific of each individual (preprocess.ofv.id).

Usage

preprocess.ofv.fix(x, data, select_eta = seq_along(eta(x)), lambda = 1)

preprocess.ofv.id(x, iddata)

Arguments

x

the model object

data, iddata

NMTRAN-like data set. iddata is likely a dataset of one individual

select_eta

numbers of the ETAs taken into account. Set the dimensions of the inversed OMEGA matrix

lambda

a numeric value, the weight applied to the model prior (default is 1)

Value

A list of arguments used to compute the objective function value.

The following arguments are fixed between individuals:

The following arguments differs between individuals:

Examples

mod <- exmodel(add_exdata = FALSE, compile = FALSE)
dat <- exdata(ID = c(1,4))

preprocess.ofv.fix(x = mod, data = dat)
preprocess.ofv.id(x = mod, iddata = dat[dat$ID == 1,])
preprocess.ofv.id(x = mod, iddata = dat[dat$ID == 4,])


[Package mapbayr version 0.10.0 Index]