statsmodels.datasets.utils.Dataset#

class statsmodels.datasets.utils.Dataset(**kw)[source]#

Container for a statsmodels dataset.

A dict subclass whose keys are also exposed as attributes. Instances are constructed by dataset loading functions such as process_pandas and get_rdataset, which determine which keys/attributes are set. Datasets returned by load_pandas functions typically define data, endog, exog, names, endog_name and exog_name; datasets returned by get_rdataset additionally define title, package and from_cache. When data can be cast to float, a raw_data attribute holding that numeric version is set automatically.

Parameters:
**kw

Keyword arguments used to populate the dataset’s keys and attributes.