Constructs a parameter table for nlmixr2 model fitting. It supports:
Direct use of a user-provided parameter table.
Automatic initialization of parameters from data using
getPPKinits().
Fallback to a default parameter table created by
initialize_param_table().
auto_param_table(
dat = NULL,
param_table = NULL,
nlmixr2autoinits = TRUE,
foldername = NULL,
filename = "test",
out.inits = TRUE,
...
)A data.frame representing the parameter table with initial
estimates, ready for use in nlmixr2().
A data frame containing observed data (required if
nlmixr2autoinits = TRUE).
Optional. A user-provided parameter table (if provided, all other logic is skipped).
Logical. Whether to automatically estimate
initial values using getPPKinits(). Default is TRUE.
Character string specifying the folder name for storing
nlmixr2autoinits outputs. If NULL (default), tempdir()
is used for temporary storage. If specified, a cache directory
is created in the current working directory.
Character string specifying the base name for model output files generated during evaluation.
Logical flag indicating whether the results returned by the automated initialization procedure should be saved to an RDS file. When TRUE, the output of the initialization step is written to disk for reproducibility or debugging purposes.
Additional arguments passed to getPPKinits().
Zhonghui Huang
When nlmixr2autoinits = TRUE, this function estimates initial values
from data, applies a name mapping to internal model parameters,
performs log transformations where appropriate, and replaces
problematic log values (e.g. log(0) or NA) with log(0.01) for
numerical stability.
getPPKinits,
initialize_param_table
# \donttest{
auto_param_table(dat = pheno_sd)
# }
Run the code above in your browser using DataLab