Fitting

Fit NLME models and inspect results.

ferx_fit()

Fit a nonlinear mixed effects model

ferx_sir()

Run SIR against an existing fit

summary(<ferx_fit>)

Summarize a ferx fit result

Simulation & Prediction

Simulate observations or compute population predictions from a fitted model.

ferx_simulate()

Simulate from a NLME model

ferx_simulate_with_uncertainty()

Simulate with parameter-uncertainty propagation

ferx_predict()

Population predictions from a NLME model

Model editing

Create, inspect, and programmatically edit .ferx model files.

ferx_model()

Create a ferx_model object

ferx_model_new()

Create a new ferx model file from a skeleton template

ferx_model_edit()

Open a ferx model file in an editor

ferx_model_show()

Display a ferx model file in the console

ferx_model_inspect()

Inspect the structure of a ferx model file

ferx_model_validate()

Validate a ferx model file for syntax and structural errors

ferx_model_section()

Extract a section from a ferx model file

ferx_get_section()

Inspect a section of a ferx model (pipe-friendly)

ferx_set_section()

Replace a section in a ferx model (pipe-friendly)

ferx_model_set_section()

Replace a section in a ferx model file

Diagnostics & output

Extract and visualise parameter estimates, ETAs, and optimizer traces.

ferx_estimates()

Tidy parameter estimates table

ferx_eta_cov()

ETA-covariate correlation table

ferx_cor_matrix()

Correlation matrix of estimated parameters

ferx_plot_trace()

Plot optimizer trace from a ferx fit

ferx_trace()

Read the optimizer trace from a ferx fit

Utilities

Helper functions for exploring bundled examples and checking model initialisation.

ferx_example()

Get paths to example model and data files

ferx_check_init()

Quick convergence check with an optimizer trace

ferx_save_fit()

Save a ferx fit to a portable .fitrx bundle

ferx_load_fit()

Load a fit from a .fitrx bundle