Learn R Programming

fb4package (version 2.0.0)

fit_fb4_mle: Fit FB4 model using Maximum Likelihood Estimation

Description

Coordinates the MLE fitting process: runs the log-normal likelihood optimisation, optionally computes a likelihood profile, and runs a final detailed simulation with the estimated p_value.

Usage

fit_fb4_mle(
  observed_weights,
  processed_simulation_data,
  estimate_sigma = TRUE,
  oxycal = 13560,
  confidence_level = 0.95,
  compute_profile = FALSE,
  profile_grid_size = 50,
  verbose = FALSE
)

Value

List with MLE fitting results

Arguments

observed_weights

Vector of observed final weights

processed_simulation_data

Complete processed simulation data

estimate_sigma

Whether to estimate measurement error

oxycal

Oxycalorific coefficient (J/g O2), default 13560

confidence_level

Confidence level for intervals, default 0.95

compute_profile

Whether to compute likelihood profile, default FALSE

profile_grid_size

Number of points in profile grid, default 50

verbose

Whether to show progress messages, default FALSE