Computes the profile log-likelihood for the Box-Cox power parameter lambda, applied to a single positive numeric series (regression to a constant) or to the residuals of a linear model.
Usage
shewhart_box_cox(data, value = NULL, lambda_grid = seq(-2, 2, by = 0.05))Value
An object of class shewhart_box_cox with components
profile (tibble of lambda vs. log-likelihood), lambda_hat
(the maximiser), ci (95% CI). The object has its own
print() method.
Details
Reports the lambda that maximises the profile likelihood and a 95% confidence interval based on the chi-square approximation to twice the log-likelihood drop (Box & Cox 1964, eq. 9).
References
Box, G. E. P., & Cox, D. R. (1964). An Analysis of Transformations. Journal of the Royal Statistical Society, Series B, 26(2), 211-252. doi:10.1111/j.2517-6161.1964.tb00553.x