MNLogit.parse_formula#
- MNLogit.parse_formula(df, formula, depvar)[source]#
Parse the three-part structure of a formula specification.
Splits the formula into target, alternative-specific covariates, and fixed covariates. Ensures that the target variable appears in the dependent variable column and that all specified covariates exist in the input dataframe.