AlignedRanksTest¶
- class robusta.groupwise.AlignedRanksTest(**kwargs)¶
Bases:
robusta.groupwise.models.AnovaRun Aligned Ranks Transform - a non-parametric n-way ANOVA for a between, within or mixed design.
- Parameters
data (pd.DataFrame) – Containing the subject, dependent, between’ and `within variables as columns.
formula (str, optional) – An R-style formula describing the statistical model. In the form of (dependent ~ between + within | subject). If used, the parsed formula will overrides the following arguments dependent, between, within and subject.
dependent (key in data, optional) – The name of the column identifying the dependent variable (i.e., response variable) in the data. The column data type should be numeric or a string that can be coerced to numeric. Overriden by formula if specified. Required if formula is not specified.
between (key(s) in data (str or array-like), optional) – The name of the column identifying the independent variable (i.e., predictor variable) in the data. Identifies variables that are manipulated between different subject units (i.e., exogenous variable). Overriden by formula if specified. Not required if formula is not specified, given within is is specified.
within (key(s) in data (str or array-like), optional) – The name of the column identifying the independent variable in the data (i.e., predictor variable). The Identifies variables that are manipulated within different subject units (i.e., endogenous variable). Overriden by formula if specified. Not required if formula is not specified, given between is is specified.
subject (str or key in data, optional) – The name of the column identifying the sampling unit in the data (i.e., subject). Overriden by formula if specified. Required if formula is not specified.
agg_func (str (name of pandas aggregation function) or callable, optional) – Specified how to aggregate observations within sampling.
Notes
R function - https://www.rdocumentation.org/packages/ART/versions/1.0/topics/aligned.rank.transform from the ARTool package 1
References
- 1
Kay M and Wobbrock J (2021). ARTool: Aligned Rank Transform for Nonparametric Factorial ANOVAs. R package version 0.11.0, https://github.com/mjskay/ARTool. DOI: 10.5281/zenodo.594511.