Function to remove covariates from a given variable's equation in the function string text

removeCovVar(fitobject, varName, covariate, categorical = FALSE, isHS = FALSE)

Arguments

fitobject

an nlmixr 'fit' object

varName

a string giving the variable name to which covariate needs to be added

covariate

a string giving the covariate name; must be present in the data used for 'fit'

categorical

a boolean to represent if the covariate to be added is categorical

isHS

a boolean to represent if the covariate to be added is hockey-stick normalized

Value

returns a list containing the updated model and the parameter names for the covariates added

Author

Vipul Mann, Matthew Fidler