NestedLogit.create_fit_data_group#

NestedLogit.create_fit_data_group()[source]#

Create xarray Dataset for storing choice_df in DataTree.

This allows the model to be reconstructed when loading from file.

Returns:
xr.Dataset

Choice data as xarray Dataset with ‘obs’ dimension