Skip to contents

Generalized simulations output (GSO) is the long-format data frame returned by sg_sim() and related simulation helpers. Run the bundled gsi_pk1c scenario with gmo_pk1c to reproduce the standard example output.

Format

GSO

A data frame in long format with one row per ID, replicate, time point, and output variable. With population uncertainty (thetamat, npop > 1) typical columns are:

ID

Dosing scenario identifier from the event table.

POPN

Population replicate index (present when thetamat is used).

sim.id

Subject replicate index (present when omega is used).

TIME

Simulation time (h).

VAR

Output variable name (e.g. "Cc").

VALUE

Simulated value.

When aggr is set, aggregation statistic columns (mean, median, P05, …) replace or supplement VALUE; see the Details section of sg_sim().

Examples

# \donttest{
gso <- do.call(sg_sim, c(list(model = gmo_pk1c), gsi_pk1c))
#> Error in rxModelVars(object)$flags[["hasDelay"]]: subscript out of bounds
names(gso)
#> Error: object 'gso' not found
head(gso)
#> Error: object 'gso' not found
subset(gso, VAR == "Cc" & ID == 1 & POPN == 1)
#> Error: object 'gso' not found
# }