Create a new Dosepoint object and validate it
Dosepoint.Rd
Create a new Dosepoint object and validate it
Arguments
- DosepointName
A character string giving the name of the Dosepoint.
- State
A character string giving the state of the Dosepoint, must be one of "None", "Present", "Searched". Default is "Present".
- tlag
An optional parameter for the time lag. Can be an
StParm
object, anExpression
object, or a character string (which will be converted to an Expression).- bioavail
An optional parameter for bioavailability. Can be an
StParm
object, anExpression
object, or a character string (which will be converted to an Expression).- duration
An optional parameter for the duration of infusion. Can be an
StParm
object, anExpression
object, or a character string (which will be converted to an Expression).- rate
An optional parameter for the rate of infusion. Can be an
StParm
object, anExpression
object, or a character string (which will be converted to an Expression).- PMLStructure
A character string that indicates a specific PML structure this Dosepoint definition should be associated with.
See also
list_Dosepoints()
, add_Dosepoint()
, modify_Dosepoint()
, StParm()
, Expression()
Functions used for Dosepoint specification:
add_Dosepoint()
,
create_ModelPK()
,
modify_Dosepoint()
Examples
# Using StParm objects
TlagStParm <- StParm("Tlag",
Type = "LogNormal",
ThetaStParm = Theta(Name = "tvTlag", InitialEstimates = 0.1))
FStParm <- StParm("F", ThetaStParm = Theta(Name = "tvF")) # Assuming Theta exists
dp1 <- Dosepoint(DosepointName = "GutInput",
State = "Present",
tlag = TlagStParm,
bioavail = FStParm)
# Using Expression objects
dp2 <- Dosepoint(DosepointName = "Infusion",
rate = Expression("RateVal",
ContainedStParms =
list(StParm("RateVal",
ThetaStParm = Theta("tvRateVal")))))
# Using a character string (will be converted to Expression internally)
dp3 <- Dosepoint(DosepointName = "Bolus",
bioavail = "SystemicF") # Converted to Expression("SystemicF")
#> bioavail converted to expression for dosepoint Bolus