get_fml_parts: Split formula into terms

View source: R/fml_tools.R

get_fml_partsR Documentation

Split formula into terms

Description

Split formula into terms

Usage

get_fml_parts(formula, parts_as_formula = FALSE)

Arguments

formula

Full formula following fixest syntax: y ~ W | W_FE | T ~ Z | Z_FE.

parts_as_formula

Logical. If TRUE, then each part will be a right-hand side formula. Default is FALSE

Value

List of expressions/formula for each part of the formula. It will be of type symbol/language unless parts_as_formula = TRUE. Can be used with fixest::xpd and the dot bracket syntax to create formula. Any missing elements will be given a value of NULL. The list contains the following:

y_fml

The LHS

W_lin

The linear part of the exogenous variables

W_FE

The fixed effects part of the exogenous variables

T_fml

The endogenous variable

Z_lin

The linear part of the instruments

Z_FE

The fixed effects part of the instruments


fwlplot documentation built on June 24, 2024, 5:09 p.m.