How to use the pingouin.print_table function in pingouin

To help you get started, we’ve selected a few pingouin examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github raphaelvallat / pingouin / examples / examples_pairwise_ttests.py View on Github external
#                         alpha=.05, tail='two-sided', padjust='fdr_bh',
#                         effsize='hedges')
# print(stats)

# 3 - Interaction within * between
# stats = pairwise_ttests(dv='DV', within='Time', between='Group',
#                         effects='interaction', data=df, alpha=.05,
#                         tail='two-sided', padjust='bonf', effsize='eta-square')
# print(stats)

# 4 - all = return all three above
stats = pairwise_ttests(dv='DV', within='Time', between='Group',
                        effects='all', data=df, alpha=.05,
                        tail='two-sided', padjust='fdr_by',
                        effsize='cohen', return_desc=False)
print_table(stats)
github raphaelvallat / pingouin / examples / examples_anova.py View on Github external
# Load dataset
df = pd.read_csv('sleep_dataset.csv')

# ONE-WAY ANOVA
aov = anova(dv='DV', between='Group', data=df, detailed=False)
print_table(aov, floatfmt=".3f")

# ONE-WAY REPEATED MEASURES ANOVA
aov = rm_anova(dv='DV', within='Time', data=df, correction='auto',
               remove_na=True, detailed=True)
print_table(aov)

# TWO-WAY MIXED MODEL ANOVA (Within + Between factors)
aov = mixed_anova(dv='DV', within='Time', between='Group', data=df,
                  correction='auto', export_filename='mixed_anova.csv')
print_table(aov)
github raphaelvallat / pingouin / examples / examples_anova.py View on Github external
"""
import pandas as pd
from numpy import repeat
from pingouin import anova, rm_anova, mixed_anova, print_table

# Load dataset
df = pd.read_csv('sleep_dataset.csv')

# ONE-WAY ANOVA
aov = anova(dv='DV', between='Group', data=df, detailed=False)
print_table(aov, floatfmt=".3f")

# ONE-WAY REPEATED MEASURES ANOVA
aov = rm_anova(dv='DV', within='Time', data=df, correction='auto',
               remove_na=True, detailed=True)
print_table(aov)

# TWO-WAY MIXED MODEL ANOVA (Within + Between factors)
aov = mixed_anova(dv='DV', within='Time', between='Group', data=df,
                  correction='auto', export_filename='mixed_anova.csv')
print_table(aov)
github raphaelvallat / pingouin / examples / examples_anova.py View on Github external
"""One-way repeated measures ANOVA
"""
import pandas as pd
from numpy import repeat
from pingouin import anova, rm_anova, mixed_anova, print_table

# Load dataset
df = pd.read_csv('sleep_dataset.csv')

# ONE-WAY ANOVA
aov = anova(dv='DV', between='Group', data=df, detailed=False)
print_table(aov, floatfmt=".3f")

# ONE-WAY REPEATED MEASURES ANOVA
aov = rm_anova(dv='DV', within='Time', data=df, correction='auto',
               remove_na=True, detailed=True)
print_table(aov)

# TWO-WAY MIXED MODEL ANOVA (Within + Between factors)
aov = mixed_anova(dv='DV', within='Time', between='Group', data=df,
                  correction='auto', export_filename='mixed_anova.csv')
print_table(aov)