get_number_of_observations function

get_number_of_observations

get_number_of_observations

Retrieve the total number of observations in the model dataset

get_number_of_observations(model)

Arguments

  • model: (Model) Pharmpy model

Returns

(integer) Number of observations in the model dataset

Note

For NONMEM models this is the number of observations of the active dataset, i.e. after filteringof IGNORE and ACCEPT and removal of individuals with no observations.

Examples

## Not run: model <- load_example_model("pheno") get_number_of_observations(model) ## End(Not run)

See Also

get_number_of_individuals : Get the number of individuals in a dataset

get_number_of_observations_per_individual : Get the number of observations per individual in a

dataset

  • Maintainer: Rikard Nordgren
  • License: LGPL (>= 3)
  • Last published: 2024-12-04