Skip to contents

Create a new Dosepoint object and validate it

Usage

Dosepoint(
  DosepointName = "A1",
  State = "Present",
  tlag = c(),
  bioavail = c(),
  duration = c(),
  rate = c(),
  PMLStructure = character()
)

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, an Expression object, or a character string (which will be converted to an Expression).

bioavail

An optional parameter for bioavailability. Can be an StParm object, an Expression 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, an Expression 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, an Expression 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.

Value

A new Dosepoint object.

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