Population predictions from a NLME model

Description

Computes population-level predictions (eta = 0) for all subjects.

Usage

ferx_predict(model, data, fit = NULL)

Arguments

  • model: Path to a .ferx model file
  • data: Path to a NONMEM-format CSV
  • fit: Optional ferx_fit result. When provided, predictions use fit$theta instead of the model file’s initial estimate for theta.

Seealso

Other simulation: [ferx_npde](ferx_npde.qmd)(), [ferx_predict_survival](ferx_predict_survival.qmd)(), [ferx_simulate](ferx_simulate.qmd)(), [ferx_simulate_adaptive](ferx_simulate_adaptive.qmd)(), [ferx_simulate_with_uncertainty](ferx_simulate_with_uncertainty.qmd)()

Concept

simulation

Value

A data.frame with columns: ID, TIME, PRED

Examples

ex <- ferx_example("warfarin")
fit <- ferx_fit(ex$model, ex$data, method = "gn", covariance = FALSE)
preds <- ferx_predict(ex$model, ex$data, fit = fit)
head(preds)