Computes the profile log-likelihood for a single parameter by maximizing over all other parameters at each fixed value.
Arguments
- object
A
femtofitobject fromfit().- parm
The parameter name or index to profile.
- values
Optional vector of values at which to evaluate the profile. If NULL, a grid is computed based on the MLE and standard error.
- n_points
Number of points in the grid (default 20). Ignored if
valuesis provided.- range_mult
Multiplier for the range around MLE (default 3). The grid spans MLE ± range_mult * SE.
- ...
Additional arguments passed to the optimizer.
Value
A profile_likelihood object containing:
- parameter
Name of the profiled parameter
- values
Grid of parameter values
- profile_loglik
Profile log-likelihood at each value
- mle
MLE value of the parameter
- max_loglik
Maximum log-likelihood