get_observations: get_observations

View source: R/functions_wrapper.R

get_observationsR Documentation

get_observations

Description

Get observations from dataset

Usage

get_observations(model, keep_index = FALSE, dv = NULL)

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.

dv

(Expr or str or numeric (optional)) Name or DVID of dependent variable. NULL for the default (first or only)

Value

(data.frame) Observations indexed over ID and TIME

See Also

get_number_of_observations : get the number of observations

get_number_of_observations_per_individual : get the number of observations per individual

Examples

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

## End(Not run)

pharmpy/pharmr documentation built on June 11, 2025, 11:56 a.m.