Get or set whether a model is a population model
isPopulation.RdisPopulation() reports the population / individual mode of an
NlmePmlModel. The replacement form
isPopulation(model) <- value flips that mode and keeps the
column mapping consistent: switching to individual removes the
id mapping entry (the individual write path always injects a
dummy id), and switching to population re-adds an unmapped
id entry that is then auto-mapped against any matching data
column name.
Usage
isPopulation(.Object)
# S4 method for class 'NlmePmlModel'
isPopulation(.Object)
isPopulation(.Object) <- value
# S4 method for class 'NlmePmlModel'
isPopulation(.Object) <- valueDetails
Random effects and author-written PML are left untouched; the engine decides how to execute a model whose PML disagrees with the mode.
Examples
if (FALSE) { # \dontrun{
model <- pkmodel(columnMap = FALSE, data = pkData)
isPopulation(model)
isPopulation(model) <- FALSE
} # }