Learn R Programming

xpose.xtras (version 0.1.2)

nlmixr2_as_xtra: Convenience function for ingesting an nlmixr2 model to xpose and xpose.xtras

Description

A wrapper that executes the pipeline:


obj |>
 xpose.nlmixr2::xpose_data_nlmixr2() |>
 attach_nlmixr2() |>
 as_xp_xtras() |>
 backfill_nlmixr2_props() 
 `if`(.skip_assoc, ., nlmixr2_prm_associations(.))

Usage

nlmixr2_as_xtra(obj, ..., .skip_assoc = FALSE)

Value

An <xp_xtra> object with fit attached

Arguments

obj

nlmixr2 fit object

...

Passed to xpose_data_nlmixr2

.skip_assoc

<logical> If the model is relatively uncomplicated, nlmixr2_prm_associations() may be able to recognize relationships between random effects and fixed effect parameters. If the default (FALSE) fails then try to rerun with the association step skipped.

See Also

attach_nlmixr2()