modify_StParmCustom {Certara.RDarwin} | R Documentation |
Modify custom structural parameter in PML spaces
Description
Modify custom structural parameter in PML spaces
Usage
modify_StParmCustom(
PMLParametersSets,
StParmName,
Type,
State,
ThetaStParm,
OmegaStParm,
Covariates,
PMLStructures = NULL
)
Arguments
PMLParametersSets |
A list of PML parameters sets ( |
StParmName |
Character specifying the name of the structural parameter to be added. |
Type |
Character specifying the type of the structural parameter. Options are
|
State |
character string that indicates the presence of the structural parameter. Options are:
|
ThetaStParm |
A Theta class instance inside the structural parameter. If
not given, the associated Theta will be automatically created with its name
set to "tv" + |
OmegaStParm |
An Omega class instance inside the structural parameter.
If not given, the associated Omega will be automatically created with its
name set to "n" + |
Covariates |
A list of covariates ( |
PMLStructures |
Character or character vector specifying names of PML
structures to whichthe structural parameter will be added. For the naming
convention of PMLStructures, see Details section of
|
Details
This function can be applied to the custom models. It allows modification of custom structural parameters defined in the PML code of these spaces.
When modifying a custom structural parameter, the corresponding stparm
statement is removed from the PML code, and the updated parameter is added
back as a StParm
class using the provided arguments. Similarly, associated
fixef
and ranef
statements related to the custom structural parameter are
removed.
Please note that this function is specifically designed for modifying custom
structural parameters. For non-custom parameters, use modify_StParm()
.
Value
An updated list of PML models (PMLModels
class instance) matching
the specified options.
See Also
Dosepoint()
list_StParms()
modify_StParm()
Functions used for StParm specification:
StParm()
,
add_StParm()
,
create_ModelPD()
,
create_ModelPK()
,
modify_StParm()
,
remove_StParm()
Examples
# Modify the custom structural parameter 'Cl':
OneCpt_CustomCode <-
paste0(
"\nderiv(A1 = - Cl * C)",
"\ndosepoint(A1)",
"\ndosepoint2(A1, tlag = 12)",
"\nC = A1 / V",
"\nerror(CEps = 0.01)",
"\nobserve(CObs = C + CEps * sqrt(1 + C^2 * (CMultStdev/sigma())^2), bql = 0.01)",
"\nstparm(V = tvV * exp(nV))",
"\nstparm(Cl = tvCl * exp(nCl))",
"\nstparm(CMultStdev = tvCMultStdev)",
"\nfixef(tvV = c(, 5, ))",
"\nfixef(tvCl = c(, 1, ))",
"\nfixef(tvCMultStdev = c(, 0.1, ))",
"\nranef(diag(nV) = c(1))",
"\nranef(diag(nCl) = c(1))\n"
)
OneCpt_CustomCode <-
modify_StParmCustom(
create_CustomSpace(OneCpt_CustomCode),
StParmName = "Cl",
Type = "Normal")