coef.chandwich: Extract model coefficients method for objects of class...

View source: R/methods.R

coef.chandwichR Documentation

Extract model coefficients method for objects of class "chandwich"

Description

coef method for class "chandwich".

Usage

## S3 method for class 'chandwich'
coef(object, complete = FALSE, ...)

Arguments

object

an object of class "chandwich", a result of a call to adjust_loglik.

complete

A logical scalar. If complete = TRUE then the full vector of parameter estimates is returned, including any fixed using fixed_pars and fixed_at in the call to adjust_loglik. Otherwise, only the vector of estimates of free parameters is returned.

The default is complete = FALSE, which is in sync with vcov.chandwich.

...

Additional optional arguments. At present no optional arguments are used.

Details

The full vector of estimates is taken from attributes(object)$res_MLE and the reduced vector from attributes(object)$MLE.

Value

A numeric vector of estimated parameters, which will be named if names were provided in the call to adjust_loglik.

See Also

vcov.chandwich: vcov method for class "chandwich".

summary.chandwich: summary method for class "chandwich".

adjust_loglik to adjust a user-supplied loglikelihood.


chandwich documentation built on Aug. 26, 2023, 1:07 a.m.