Learn R Programming

nlmixr (version 0.9.1-3)

fitted.focei.fit: Extract the fitted values from the model

Description

Extract the fitted values from the model

Usage

# S3 method for focei.fit
fitted(object, ..., population = FALSE,
  type = c("fitted", "posthoc"))

Arguments

object

Fit object

...

other parameters

population

when true (default false), calculate/extract the population predictions; When false, calculate/extract the individual predictions.

If this is a matrix with the number columns equal to the number of ETAs in model, and the number of rows equals to the number of subjects in the dataset, then these etas will be used to fit the data.

type

The type of fitted object to be extracted. When the value is "fitted", this gives the individual or population fitted values. When "posthoc", this extracts the posthoc deviations from the typical values or ETAs.

Value

Individual/population predictions