Calculate individual parameter values by applying sampled random effects to typical individual parameter values

Calculate individual parameter values by applying sampled random effects to typical individual parameter values

calcIndParamValues(spec, typicalIndParamValues, randomEffects)

Arguments

spec

a filename (character string) denoting the path to a GPF excel file, or a GPF object, or an IQRnlmeParamSpec object.

typicalIndParamValues

a data.frame specifying typical individual parameter values on an original (not transformed to normal) scale for the model parameters in spec. Apart from the parameter columns, this data.frame should have an ID.POP and an ID column corresponding to the columns ID.POP and ID in randomEffects. This data.frame should have the same number of rows as randomEffects. See calcTypicalIndParamValues.

randomEffects

a data.frame specifying random effect values on a normal (transformed) scale for the model parameters in spec. Apart from the parameter columns, this data.frame should have an ID.POP and an ID integer columns corresponding to population id and individual id within a population respectively. See sampleRandomEffects.

Value

a data.frame with the same column names as the arguments typicalIndParamValues and randomEffects. The individual parameter values in this data.frame are on the original scale (not transformed to a normal scale).

See also

Examples

if (FALSE) { #See the examples for sampleIndParamValues: ?sampleIndParamValues } # See examples in \code{\link{sampleIndParamValues}}.