Add a plot of adherence.
parent
9cba88a6e3
commit
151bbfe360
|
@ -84,6 +84,12 @@ df_adherence = df_adherence.merge(df_participant_finished_sessions, how="left",
|
||||||
# %% tags=[]
|
# %% tags=[]
|
||||||
df_adherence
|
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()
|
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
|
table = sm.stats.anova_lm(lm_adherence, typ=2) # Type 2 ANOVA DataFrame
|
||||||
|
|
Loading…
Reference in New Issue