- x
Bioenergetic object with all model components
- fit_to
Target type: "Weight", "Consumption", "p_value", "Ration", "Ration_prey"
- fit_value
Target value for deterministic approach
- observed_weights
Vector of observed final weights for MLE or bootstrap approaches (optional)
- covariates
Optional covariate matrix or data frame
- first_day
First simulation day, default 1
- last_day
Last simulation day (auto-detected if NULL)
- backend
Backend selection: "r" (pure R) or "tmb" (C++ via TMB, faster MLE)
- strategy
Fitting strategy: "binary_search" (default), "direct", "optim",
"mle" (maximum likelihood), or "bootstrap" (bootstrap estimation)
- oxycal
Oxycalorific coefficient (J/g O2), default 13560
- tolerance
Convergence tolerance for iterative fitting, default 0.001
- max_iterations
Maximum iterations for binary search, default 25
- optim_method
If using optim, which method: "Brent", "L-BFGS-B", etc.
- lower
Lower bound for p_value search (proportion of Cmax), default 0.01
- upper
Upper bound for p_value search (proportion of Cmax). Biologically,
p = 1.0 is maximum ration; values > 1.0 are super-maximal. Default 1.0 for
bootstrap, 5.0 for binary_search.
- hessian
Whether to compute Hessian for standard errors, default FALSE
- verbose
Whether to show progress messages, default FALSE
- confidence_level
Confidence level for MLE/bootstrap intervals, default 0.95
- estimate_sigma
Whether to estimate measurement error in MLE, default TRUE
- compute_profile
Whether to compute likelihood profile for MLE, default FALSE
- profile_grid_size
Number of points in profile grid for MLE, default 50
- n_bootstrap
Number of bootstrap iterations, default 1000
- parallel
Whether to use parallel processing for bootstrap, default FALSE
- n_cores
Number of cores for parallel processing (NULL = auto-detect)
- sample_size
Sample size for each bootstrap iteration (NULL = same as original)
- compute_percentiles
Whether to compute additional percentiles for bootstrap, default TRUE
- ...
Additional arguments passed to strategy-specific functions
(e.g., store_predicted_weights_boot for bootstrap)