Description Usage Arguments Details Value Supported models Available methods Examples References See Also
View source: R/adj_loglik_methods.R
This function adjusts the loglikelihood of fitted model objects based on Chandler and Bate (2007). It is a generic function for different types of models, which are listed in Supported models. This section also contains links to function-specific help pages.
1 | adj_loglik(x, cluster = NULL, use_vcov = TRUE, use_mle = TRUE, ...)
|
x |
A supported fitted model object, see Supported models |
cluster |
A vector or factor indicating the cluster the corresponding
loglikelihood contribution belongs to. It is required to have the same
length as the vector returned by |
use_vcov |
A logical scalar. By default, the |
use_mle |
A logical scalar. By default, the MLE from |
... |
Further arguments to be passed to |
If use_vcov = TRUE
, the current default, the function will test
whether a vcov
S3 method exists for x
, and will take the
variance-covariance matrix from there. Otherwise, or if use_vcov = FALSE
the variance-covariance matrix of the MLE is estimated inside
chandwich::adjust_loglik()
using stats::optimHess()
.
An object of class "chantrics"
inheriting from class "chandwich"
.
See the documentation provided with chandwich::adjust_loglik()
.
glm
glm.nb
"chantrics"
objects have the following methods available to them:
AIC
anova
alrtest
- Adjusted Likelihood ratio tests
coef
lmtest::coeftest
- \(z\) tests for all
coefficients
confint
and plot.confint
- confidence intervals for
all coefficients, and diagnostics plots for confint()
.
conf_intervals
- enhanced confidence
interval reports
conf_region
- two-dimensional confidence
regions
df.residual
fitted
logLik
logLik_vec
nobs
plot
predict
print
residuals
summary
terms
vcov
See the model-specific pages in the supported models section.
R. E. Chandler and S. Bate, Inference for clustered data using the independence loglikelihood, Biometrika, 94 (2007), pp. 167–183. doi: 10.1093/biomet/asm015.
lax::alogLik()
supports adjustment for user-supplied objects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.