R/formulation.R
blp_formulation.Rd
Create a BLP formulation
blp_formulation(formula, absorb = NULL)
Formula string (e.g., "1 + prices + sugar") or R formula
Optional formula for absorbed fixed effects (e.g., "~ product_id")
A BLPFormulation object
f1 <- blp_formulation("1 + prices + sugar + mushy") f2 <- blp_formulation("0 + prices", absorb = "~ product_ids")