Calculate the negative log-likelihood along a line
connecting two mle
fits
calcslice(fit1, fit2, fn = fit1@minuslogl, range = c(-0.1, 1.1), n = 400)
Parameter values, along the 0-1 scale described above
Negative log-likelihood values
An mle
object
Another mle
object
Negative log-likelihood function
Numeric vector: range of parameters to try, where
0 corresponds to coef(fit1)
and 1 corresponds to coef(fit2)
Number of points to evaluate
Ben Bolker
Calculates the negative log-likelihood (not a profile, just a "slice") along the line connecting the two sets of coefficients. Intended for diagnosing and visualizing multiple minima in a likelihood surface, especially in higher-dimensional models.