weights.fixest: Extracts the weights from a 'fixest' object

Description Usage Arguments Value See Also Examples

View source: R/Methods.R

Description

Simply extracts the weights used to estimate a fixest model.

Usage

1
2
## S3 method for class 'fixest'
weights(object, ...)

Arguments

object

A fixest object.

...

Not currently used.

Value

Returns a vector of the same length as the number of observations in the original data set. Ignored observations due to NA or perfect fit are re-introduced and their weights set to NA.

See Also

feols, fepois, feglm, fenegbin, feNmlm.

Examples

1
2
est = feols(Petal.Length ~ Petal.Width, iris, weights = ~as.integer(Sepal.Length) - 3.99)
weights(est)

fixest documentation built on June 19, 2021, 5:06 p.m.