reghdfe: High dimension fixed effects regression (OLS) with fixest...

View source: R/reghdfe.R

reghdfeR Documentation

High dimension fixed effects regression (OLS) with fixest package.

Description

reghdfe returns the fixest object consisting of the regression equation.

Usage

reghdfe(
  data,
  outcome,
  explanatory_vars,
  fixed_effects = NULL,
  cluster,
  weights = NULL
)

Arguments

data

tibble or dataframe.

outcome

outcome of interest. Must be a string.

explanatory_vars

vector of explanatory variables. Must be a string.

fixed_effects

a vector of fixed effects. Must be a string. Defaults to NULL for no fixed effects.

cluster

column to cluster by. Must be a string.

weights

column to weight by.

Details

This function calls the fixest::feols() function, but simiplifies the typing.

Examples

reghdfe(mtcars, "mpg", "hp", "am", "am")


michaeltopper1/ifc documentation built on Jan. 30, 2023, 10:08 a.m.