Is there a general way to ignore NaNs in statsmodels?
I am using statsmodels' AnovaRM
function to run repeated measures ANOVAs on various data sets. There are missing values in different columns for different rows. When running AnovaRM
, it obviously returns nan
for F- and p-values.
I have tried
aovrm = AnovaRM(df3, 'RT', 'id', within=['iv'], missing = 'drop')
as suggested in Ignoring missing values in multiple OLS regression with statsmodels, however this does not seem to work for AnovaRM
.
So far I have simply excluded the subjects with missing data points, but that's a) really not the point and b) is simply not feasible for many data sets.