
Set the variables for the model piping automatic covarite selection
Source:R/piping-model.R
rxSetPipingAuto.RdSet the variables for the model piping automatic covarite selection
Usage
rxSetPipingAuto(
thetamodelVars = rex::rex(or("tv", "t", "pop", "POP", "Pop", "TV", "T", "cov", "err",
"eff")),
covariateExceptions = rex::rex(start, or("wt", "sex", "crcl", "kout"), end),
etaParts = c("eta", "ETA", "Eta", "ppv", "PPV", "Ppv", "iiv", "Iiv", "bsv", "Bsv",
"BSV", "bpv", "Bpv", "BPV", "psv", "PSV", "Psv")
)Details
This is called once at startup to set the defaults, though you can change this if you wish so that piping can work differently for your individual setup
See also
Other Model UI and piping:
as.ini(),
as.model(),
as.rxUi(),
coef.rxUi(),
indLin(),
ini.rxUi(),
ini<-(),
linCmtMicro(),
linToOde(),
model.function(),
model<-(),
modelExtract(),
odeToLin(),
rxAppendModel(),
rxFixPop(),
rxFixRes(),
rxGetControl(),
rxRemoveControl(),
rxRename(),
rxSetControl(),
rxSetCovariateNamesForPiping(),
rxUiDecompress(),
rxode2<-(),
update.rxUi(),
zeroRe()
Examples
.vs <- utils::getFromNamespace(".varSelect", "rxode2")
.old <- list(.vs$thetamodelVars, .vs$covariateExceptions, .vs$etaParts)
# also always treat `age` as a covariate when piping
rxSetPipingAuto(covariateExceptions = "^(wt|sex|crcl|kout|age)$")
# restore the previous settings
do.call(rxSetPipingAuto, .old)