File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Analysis of covariance using pingouin and statsmodels."""
22from __future__ import annotations
3+
34import numpy as np
45import pandas as pd
56import pingouin as pg
67import statsmodels
78
89
9- def ancova_pg (df_long : pd .DataFrame ,
10- feat_col : str ,
11- dv : str ,
12- between : str ,
13- covar : list [str ] | str ,
14- fdr = 0.05 ) -> pd .DataFrame :
10+ def ancova_pg (
11+ df_long : pd .DataFrame ,
12+ feat_col : str ,
13+ dv : str ,
14+ between : str ,
15+ covar : list [str ] | str ,
16+ ) -> pd .DataFrame :
1517 """ Analysis of covariance (ANCOVA) using pg.ancova
1618 https://pingouin-stats.org/generated/pingouin.ancova.html
1719
@@ -117,7 +119,7 @@ def get_scores(self):
117119 covar = self .covar )
118120 return scores .set_index (feat_col )
119121
120- def ancova (self , random_seed = 123 ):
122+ def ancova (self ):
121123 raise NotImplementedError
122124
123125
You can’t perform that action at this time.
0 commit comments