Warning in mediate(model_aPath, model_bPath, treat = "condition", mediator =
"distanceFromPast", : treatment and control values do not match factor levels;
using control and appearanceChange as control and treatment, respectively
show code
summary(model_aPath)
Call:
lm(formula = distanceFromPast ~ condition, data = study2)
Residuals:
Min 1Q Median 3Q Max
-2.16519 -0.40264 -0.00264 0.43481 2.19736
Coefficients:
Estimate Std. Error t value Pr(>|t|)
(Intercept) 2.20264 0.03192 69.012 < 2e-16 ***
conditionappearanceChange 0.36254 0.04503 8.051 2.76e-15 ***
---
Signif. codes: 0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1
Residual standard error: 0.6572 on 850 degrees of freedom
Multiple R-squared: 0.07085, Adjusted R-squared: 0.06976
F-statistic: 64.82 on 1 and 850 DF, p-value: 2.764e-15