load_statin49_cluster_idx_data#
- MDDC.datasets.load_statin49_cluster_idx_data(desc=False, as_dataframe=True)#
A 50 by 7 data matrix of a contingency table processed from FDA Adverse Event Reporting System (FAERS) database from the third quarter of 2014 to the fourth quarter of 2020; this dataset also contains the cluster index of the various adverse events.
The 49 rows represent 49 important adverse events associated with the statin class, with the final row aggregating the remaining 5,990 adverse events. The 49 AEs are classified into three clusters:
AEs associated with signs and symptoms of muscle injury,
AEs associated with laboratory tests for muscle injury, and
AEs associated with kidney injury and its laboratory diagnosis and treatment.
Read more in the User Guide.
Parameters#
- descboolean, optional
If set to True, the function will return the description along with the data. If set to False, the description will not be included. Defaults to False.
- as_dataframeboolean, optional
Determines whether the function should return the data as a pandas DataFrame (Trues) or as a numpy array (False). Defaults to True.
Returns#
- datapandas.DataFrame, if as_dataframe is True
Dataframe of the data with shape (n_samples, n_features + class).
- (desc, data)tuple, if desc is True.
If as_dataframe is True, a tuple containing the description and a pandas.DataFrame with shape (50, 7) is returned. If as_dataframe is False, a numpy.ndarray with shape (50, 7) is returned along with the description.
Data Source#
Examples#
>>> from MDDC.datasets import load_statin49_cluster_idx_data >>> statin49_with_cluster_idx = load_statin49_cluster_idx_data()