get_observations function

get_observations

get_observations

Get observations from dataset

get_observations(model, keep_index = FALSE)

Arguments

  • model: (Model) Pharmpy model
  • keep_index: (logical) Set to TRUE if the original index should be kept. Otherwise a new index using ID and idv will be created.

Returns

(data.frame) Observations indexed over ID and TIME

Examples

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

See Also

get_number_of_observations : get the number of observations

get_number_of_observations_per_individual : get the number of observations per individual

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