Set structural parameter in model object
structuralParameter.Rd
Use to specify the relationship of the structural parameter with corresponding fixed effect, random effect, and covariate.
Usage
structuralParameter(
.Object,
paramName,
fixedEffName = NULL,
randomEffName = NULL,
style = "LogNormal",
hasRandomEffect = NULL
)
Arguments
- .Object
Model object
- paramName
Name of the structural parameter
- fixedEffName
Name of the corresponding fixed effect
- randomEffName
Name of the corresponding random effect; only applicable to population models.
- style
Use to specify the relationship of the structural parameter with its corresponding fixed effect, random effect, and covariate, if exists.
"LogNormal"
(Default): The structural parameter is defined asProduct * exp(Eta)
."LogNormal1"
: The structural parameter is defined asSum * exp(Eta)
."LogNormal2"
: The structural parameter is defined asexp(Sum + Eta)
."LogitNormal"
: The structural parameter is defined asilogit(Sum + Eta)
."Normal"
The structural parameter is defined asSum + Eta)
Product
denotes the product of the corresponding fixed effect and covariate effect terms (if exists),Eta
represents the corresponding random effect, andSum
denotes the sum of its corresponding fixed effect and covariate effect terms (if exists).- hasRandomEffect
Set to
FALSE
to remove the corresponding random effect from the model. Only applicable to population models. IfNULL
the system will automatically sethasRandomEffect = TRUE
for population models, andhasRandomEffect = FALSE
for individual models.
Examples
model <- pkindirectmodel(
indirectType = "LimitedInhibition",
isBuildup = FALSE,
data = pkpdData,
ID = "ID",
Time = "Time",
A1 = "Dose",
CObs = "CObs",
EObs = "EObs"
)
# Change style of structural parameter "Imax" to "LogitNormal"
# and rename fixed effect to "tvlogitImax"
model <- structuralParameter(model,
paramName = "Imax",
style = "LogitNormal", fixedEffName = "tvlogitImax"
)
# Remove random effect for structural parameter "IC50"
model <- structuralParameter(model,
paramName = "IC50",
hasRandomEffect = FALSE
)