From 151bbfe360c2fd3cdfca15985f8c5675c30f761d Mon Sep 17 00:00:00 2001 From: junos Date: Tue, 8 Jun 2021 22:42:56 +0200 Subject: [PATCH] Add a plot of adherence. --- statistical_analysis/concordance.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/statistical_analysis/concordance.py b/statistical_analysis/concordance.py index 12501b7..5113177 100644 --- a/statistical_analysis/concordance.py +++ b/statistical_analysis/concordance.py @@ -84,6 +84,12 @@ df_adherence = df_adherence.merge(df_participant_finished_sessions, how="left", # %% tags=[] df_adherence +# %% +df_adherence.describe() + +# %% +sns.displot(df_adherence["finished_sessions"], binwidth=5, height=5) + # %% lm_adherence = smf.ols('finished_sessions ~ C(gender) + C(startlanguage) + age', data=df_adherence).fit() table = sm.stats.anova_lm(lm_adherence, typ=2) # Type 2 ANOVA DataFrame