Skip to contents

isPopulation() 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) <- value

Arguments

.Object

An NlmePmlModel object.

value

A single non-NA logical. TRUE for population mode, FALSE for individual mode.

Value

For the getter, a length-1 logical. For the setter, the updated NlmePmlModel.

Details

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
} # }