I cannot seem to find a proper guide on how to interpret the results from a Mixed Linear Model Regression.
import statsmodels.api as sm
import statsmodels.formula.api as smf
md = smf.mixedlm("var1 ~ C(Gender) + C(Gender)*Weight + C(Gender)*Height", dataset, groups=dataset["Gender"])
mdf = md.fit()
print(mdf.summary())
Results:
------------------------------------------------------------------------
Coef. Std.Err. z P>|z| [0.025 0.975]
------------------------------------------------------------------------
Intercept 3.389 1.109 3.057 0.002 1.216 5.561
C(Gender)[T.1] -0.011 1.578 -0.007 0.995 -3.103 3.082
Weight -0.067 0.022 -3.028 0.002 -0.111 -0.024
C(Gender)[T.1]: Weight -0.021 0.025 -0.844 0.399 -0.071 0.028
Height 0.104 0.026 4.028 0.000 0.053 0.154
C(Gender)[T.1]: Height -0.028 0.029 -0.949 0.343 -0.085 0.030
I do not get what is the meaning of groups = ...
What am I supposed to define there? Also, when defining the Gender as a categorical variable, so that it takes into account both genders, how do I interpret the results and the interaction effects of both genders?
Also, for some help for the meaning of the coefficient based on the p-value.
Thank you in advance for any help!