Extends the model specification by covariate relationships.

Can be used for syspharm and NLME type of estimation objects. This is a convenience function to ease the extension of model specification by covariate relationships taking care of the entries for 'covariateModel', 'COVestimate', 'COVcentering', and 'covariateModelValues'

addCovariateToModelSpec_IQRest(
  modelSpec,
  covariateModel,
  covariateModelValues = NULL,
  COVestimate = NULL,
  COVcentering = NULL
)

Arguments

modelSpec

Model specification to be extended.

covariateModel

Named list with covariate relationships to be added.

covariateModelValues

Optional named list with initial covariate values

COVestimate

Optional named list with flags whether to estimate the respective covariate relationship

COVcentering

Optional named vector with reference values for covariates (will only be applied for non-existing reference values)

Value

Returns modified model specification.

See also

Other IQRnlmeProject: IQRnlmeEst(), IQRnlmeProject(), addPar_modelSpec(), as_IQRnlmeProject(), as_IQRnlmeProjectMulti(), bootstrap_IQRnlmeProject(), compareModels_IQRnlmeProjectMulti(), convertETAINDIVPRED_IQRnlmeProject(), covariateEffect_IQRnlmeProject(), data_IQRest(), dosing_IQRest(), duplicate_IQRnlmeProject(), eigenvalues_IQRnlmeProject(), exportVirtualSubjects_IQRnlmeProject(), getData_IQRnlmeProject(), getETAs_IQRnlmeProject(), getEst_IQRnlmeProject(), getHeader_IQRnlmeProject(), getIndivParameters_IQRnlmeProject(), getIndivPredictions_IQRnlmeProject(), getModel_IQRnlmeProject(), getObsPred_IQRnlmeProject(), getPopParameters_IQRnlmeProject(), getResults_IQRnlmeProject(), getResults_IQRnlmeProjectMulti(), hasrun_IQRnlmeProject(), hasrun_IQRnlmeProjectMulti(), informationContent_IQRnlmeProject(), is_IQRnlmeEst(), is_IQRnlmeProject(), is_IQRnlmeProjectMulti(), is_MONOLIX_IQRnlmeProject(), is_NLMIXR_IQRnlmeProject(), is_NONMEM_IQRnlmeProject(), modelSpec_IQRest(), outlier_IQRnlmeProject(), plot.IQRnlmeProject(), plot.IQRnlmeProjectMulti(), plotBLQVPC_IQRdataVPC(), plotConvergence_IQRnlmeProject(), plotETACOV_IQRnlmeProject(), plotETA_IQRnlmeProject(), plotGOF_IQRnlmeProject(), plotINDIVSIM_IQRnlmeProject(), plotINDIV_IQRnlmeProject(), plotMEANSIM_IQRnlmeProject(), plotVPC_IQRdataVPC(), pred_IQRnlmeProject(), print.IQRnlmeEst(), print.IQRnlmeProject(), print.IQRnlmeProjectMulti(), print_modelSpec(), run_IQRnlmeProject(), run_IQRnlmeProjectMulti(), sample_IQRnlmeProject(), scm_IQRnlmeProject(), summary.IQRnlmeProject(), summary.IQRnlmeProjectMulti(), summaryComments_IQRnlmeProjectMulti(), summaryCorrelations_IQRnlmeProjectMulti(), summaryCovariates_IQRnlmeProjectMulti(), summaryParameters_IQRnlmeProjectMulti(), vpc_IQRnlmeProject()

Examples

if (FALSE) { # \dontrun{
# Model specification with one covariate relationship
modelSpec0 <- list(
  POPvalues = c(ka = 0.1, CL = 1, Vc = 20),
  covariateModel = list(CL = "BWT")
)

# Add covariate model with initial guess
modelSpec1 <- addCovariateToModelSpec_IQRest(
  modelSpec = modelSpec0,
  covariateModel = list(Vc = "SEX"),
  covariateModelValues = list(Vc = c("SEX" = 0.5))
)
} # }