create_obj_fn: Creates an MAP objective function

Description Usage Arguments Value

View source: R/estimator.R

Description

Creates an MAP objective function

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
create_obj_fn(
  individual_df,
  model,
  event_table,
  inits,
  THETA,
  I_OMEGA,
  SIGMA,
  iCov = NULL,
  error_model = c("proportional", "additive"),
  ...
)

Arguments

individual_df

NONMEM dataframe with individual measurements

model

the RxODE model

event_table

the RxODE event table

inits

a vector of initial values of the state variables (e.g., amounts in each compartment), and the order in this vector must be the same as the state variables (e.g., PK/PD compartments)#'

THETA

Typical values THETA

I_OMEGA

Inverse of model OMEGA as matrix

SIGMA

residual variance SIGMA of the model

iCov

dataframe of individual time-independent covariates or NULL if not used

error_model

The residual error model/function

...

additonal parameters for RxODE 'solve' function

Value

the MAP objective function


onwhenrdy/mapstimator documentation built on July 8, 2020, 10:32 p.m.