Set structural parameter in model object
structuralParameter.RdUse 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)
Productdenotes the product of the corresponding fixed effect and covariate effect terms (if exists),Etarepresents the corresponding random effect, andSumdenotes the sum of its corresponding fixed effect and covariate effect terms (if exists).- hasRandomEffect
Set to
FALSEto remove the corresponding random effect from the model. Only applicable to population models. IfNULLthe system will automatically sethasRandomEffect = TRUEfor population models, andhasRandomEffect = FALSEfor 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
)