Configuration for designing model matrices from R formulas.
Methods
Method new()
Create a new formulation
Arguments
formula
Formula string or R formula
absorb
Optional formula for absorbed fixed effects
Method build_matrix()
Build design matrix from data
Usage
BLPFormulation$build_matrix(data)
Returns
Matrix with named columns
Method get_names()
Get column names
Usage
BLPFormulation$get_names()
Method has_prices()
Check if prices are in the formulation
Usage
BLPFormulation$has_prices()
Method has_shares()
Check if shares are in the formulation
Usage
BLPFormulation$has_shares()
Method get_absorb()
Get absorb formula (if any)
Usage
BLPFormulation$get_absorb()
Print formulation
Usage
BLPFormulation$print(...)
Method clone()
The objects of this class are cloneable with this method.
Usage
BLPFormulation$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.