Evaluation of structural and residual variability models

Share:

Description

problem.eval is a secondary function called during estimation runs. It evaluates the structural model and the residual variability model at given point estimates and at given values of the time variable. problem.eval is typically not called directly by users.

Usage

1
2
3
4
  problem.eval(subproblem = NULL,
               x = NULL,
               grid = FALSE,
               check = FALSE)

Arguments

subproblem

A list containing the following levels:

code

A list of R code extracted from the model file. Depending on content of the model file, the levels of this list could be: template, derived, lags, ode, dde, output, variance, and/or secondary.

method

A character string, indicating the scale of the analysis. Should be 'population' or 'subject'.

init

A data.frame of parameter data with the following columns: 'names', 'type', 'value', 'isfix', 'lb', and 'ub'.

debugmode

Logical indicator of debugging mode.

modfun

Model function.

data

A list containing the following levels:

xdata

1 x m matrix of time of observations of the dependent variables.

data

m x 3 data.frame containing the times of observations of the dependent variables (extracted from the TIME variable), the indicators of the type of dependent variables (extracted from the CMT variable), and the actual dependent variable observations (extracted from the DV variable).

bolus

bij x 4 data.frame providing the instantaneous inputs for a treatment and individual.

infusion

fij x (4+c) data.frame providing the zero-order inputs for a treatment and individual.

cov

mij x c data.frame containing the times of observations of the dependent variables (extracted from the TIME variable) and all the covariates identified for this particular treatment.

x

A vector of numerical estimates of numerical parameters.

grid

A logical variable, indicating whether the analysis is a direct grid search or not.

check

An indicator whether checks should be performed to validate function inputs.

Value

Return a list of two elements:

f

A vector of model evaluations at all requested time points (all states values are concatenated into a single vector).

weight

A vector of residual variability related to the model evaluations.

Author(s)

Sebastien Bihorel (sb.pmlab@gmail.com)

See Also

fitmle

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.