get_number_of_observations {pharmr}R Documentation

get_number_of_observations

Description

Retrieve the total number of observations in the model dataset

Usage

get_number_of_observations(model)

Arguments

model

(Model) Pharmpy model

Value

(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.

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

Examples

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

## End(Not run)

[Package pharmr version 1.0.1 Index]