/
You are viewing the documentation for metbit 1.0.0. Change release context

metbit.multivariate.opls.anova

Other module in metbit 1.0.0.

import metbit.multivariate.opls.anova

Classes

anova_oplsda

ANOVA for OPLS-DA model

This class implements ANOVA analysis for the OPLS-DA (Orthogonal Partial Least Squares Discriminant Analysis) model. It calculates the F-statistics and p-values for each number of components in the OPLS-DA model.

Parameters: - X: predictor variables as numpy array or pandas DataFrame - Y: response variable as numpy array or pandas Series (categorical) - n_components: number of components for the OPLS-DA model (default: 2) - cv: number of folds for cross-validation (default: 5)

Methods: - fit(): Fits the OPLS-DA model and calculates the F-statistics and p-values. - summary(): Generates a summary table with the F-statistics and p-values for each number of components.

Methods

__init__(self, X, Y, n_components=2, cv=5)
fit(self)

Fits the OPLS-DA model and calculates the F-statistics and p-values.

summary(self)

Generates a summary table with the F-statistics and p-values for each number of components.

Returns: - summary_table: pandas DataFrame with the F-statistics and p-values

Source

metbit/multivariate/opls/anova.py at v1.0.0
Downloads for metbit 1.0.0PyPI and GitHub measure different distribution channels. Statistics refresh daily.

Counts are distribution activity, not unique users. GitHub source archives and Git clones are not included. Sources: PyPI Stats, Pepy, ClickPy, and GitHub Releases.

metbit 1.0.0 documentation