absorb: Function to pass to lfe::getfe() function to return intercept...

Description Usage Arguments Value Examples

View source: R/absorb.R

Description

Function to pass to lfe::getfe() function to return intercept as in arge function in Stata

Usage

1
absorb(gamma, addnames, .FE)

Arguments

gamma

A numeric vector of FE estimates from lfe::felm().

addnames

A character vector of FE level names.

.FE

A numeric vector of FE from the data.

Value

Returns scalar vector of length one.

Examples

1
2
3
4
5
6
## Not run: icpt <- unname(
                   plyr::name_rows(
                   lfe::getfe(fit, ef = absorb, se = T, bN = 1000)
                   )
                 )
## End(Not run)

gerasy1987/usefulr documentation built on Aug. 31, 2021, 4:25 p.m.