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_IQRnlmeProjectMulti, as_IQRnlmeProject, bootstrap_IQRnlmeProject, compareModels_IQRnlmeProjectMulti, convertETAINDIVPRED_IQRnlmeProject, covariateEffect_IQRnlmeProject, createDataVPC_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_IQRnlmeProjectMulti, getResults_IQRnlmeProject, hasrun_IQRnlmeProjectMulti, hasrun_IQRnlmeProject, informationContent_IQRnlmeProject, is_IQRnlmeEst, is_IQRnlmeProjectMulti, is_IQRnlmeProject, is_MONOLIX_IQRnlmeProject, is_NLMIXR_IQRnlmeProject, is_NONMEM_IQRnlmeProject, modelSpec_IQRest, outlier_IQRnlmeProject, plot.IQRnlmeProjectMulti, plot.IQRnlmeProject, plotConvergence_IQRnlmeProject, plotETACOV_IQRnlmeProject, plotETA_IQRnlmeProject, plotGOF_IQRnlmeProject, plotINDIVSIM_IQRnlmeProject, plotINDIV_IQRnlmeProject, plotVPC_IQRdataVPC, pred_IQRnlmeProject, print.IQRnlmeEst, print.IQRnlmeProjectMulti, print.IQRnlmeProject, print_modelSpec, run_IQRnlmeProjectMulti, run_IQRnlmeProject, sample_IQRnlmeProject, summary.IQRnlmeProjectMulti, summary.IQRnlmeProject, summaryComments_IQRnlmeProjectMulti, summaryCorrelations_IQRnlmeProjectMulti, summaryCovariates_IQRnlmeProjectMulti, summaryParameters_IQRnlmeProjectMulti, vpc_IQRnlmeProject

Examples

if (FALSE) { # 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)) ) }