Thanks for the efforts with Jamovi - it is great to use in conjunction with R.
Is there a way to change the way contrasts are coded in lm()? I'm trying to make a comparison for a model output to that from R:
Code: Select all
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 61.309 1.120 54.76 <2e-16 ***
sexmales 28.297 1.583 17.87 <2e-16 ***
activityshopping 31.739 1.583 20.05 <2e-16 ***
sexmales:activityshopping -56.028 2.239 -25.02 <2e-16 ***
If I understand correctly, the default in R is treatment contrast coding (simple effects). Jamovi uses something different (for main effects?)#
# Model Coefficients
# ──────────────────────────────────────────────────────────────────────────────────────
# Predictor Estimate SE t p
# ──────────────────────────────────────────────────────────────────────────────────────
# Intercept 77.320 0.560 138.129 < .001
# sex:
# males – females 0.283 1.120 0.252 0.801
# activity:
# shopping – fishing 3.725 1.120 3.327 0.001
# sex ✻ activity:
# (males – females) ✻ (shopping – fishing) -56.028 2.239 -25.023 < .001
# ──────────────────────────────────────────────────────────────────────────────────────
Thank you,
Paul