mymodel <- 'Coex~c*log_size +b*M1 + e*M2
+ M1~a*log_size
+ M2~d*log_size
+ indirect1 := a*b
+ indirect2 := d*e
+ total := c + (a*b) + (d*e)
+ direct := c
+ Coex | b0*t1
+ probit11 := (-b0+c+b*a)/sqrt(b^2+1)
+ probit10 := (-b0+c )/sqrt(b^2+1)
+ probit00 := (-b0 )/sqrt(b^2+1)
+ indirect := pnorm(probit11) - pnorm(probit10)
+ direct := pnorm(probit10) - pnorm(probit00)
+ OR.indirect := (pnorm(probit11)/(1-pnorm(probit11)))/
+ (pnorm(probit10)/(1-pnorm(probit10)))
+ OR.direct := (pnorm(probit10)/(1-pnorm(probit10)))/
+ (pnorm(probit00)/(1-pnorm(probit00)))'
> fit <- sem (mymodel, data=result, ordered=c("Coex"))
> summary(fit, fit.measure=TRUE, standardize=TRUE, rsquare=TRUE)
lavaan (0.5-20) converged normally after 42 iterations
Number of observations 15
Estimator DWLS Robust
Minimum Function Test Statistic 3.755 4.023
Degrees of freedom 1 1
P-value (Chi-square) 0.053 0.045
Scaling correction factor 0.933
Shift parameter 0.000
for simple second-order correction (Mplus variant)
Model test baseline model:
Minimum Function Test Statistic 27.411 23.485
Degrees of freedom 6 6
P-value 0.000 0.001
User model versus baseline model:
Comparative Fit Index (CFI) 0.871 0.827
Tucker-Lewis Index (TLI) 0.228 -0.037
Root Mean Square Error of Approximation:
RMSEA 0.444 0.465
90 Percent Confidence Interval 0.000 0.957 0.058 0.976
P-value RMSEA <= 0.05 0.057 0.049
Weighted Root Mean Square Residual:
WRMR 0.584 0.584
Parameter Estimates:
Information Expected
Standard Errors Robust.sem
Regressions:
Estimate Std.Err Z-value P(>|z|) Std.lv Std.all
Coex ~
log_size (c) 2.627 0.842 3.118 0.002 2.627 1.319
M1 (b) -1.904 1.192 -1.597 0.110 -1.904 -0.418
M2 (e) -3.561 1.476 -2.413 0.016 -3.561 -0.616
M1 ~
log_size (a) 0.306 0.118 2.593 0.010 0.306 0.701
M2 ~
log_size (d) 0.216 0.082 2.615 0.009 0.216 0.626
Intercepts:
Estimate Std.Err Z-value P(>|z|) Std.lv Std.all
Coex 0.000 0.000 0.000
M1 0.088 0.132 0.666 0.505 0.088 0.308
M2 0.056 0.124 0.450 0.653 0.056 0.247
Thresholds:
Estimate Std.Err Z-value P(>|z|) Std.lv Std.all
Coex|t1 (b0) 0.654 0.957 0.684 0.494 0.654 0.503
Variances:
Estimate Std.Err Z-value P(>|z|) Std.lv Std.all
Coex 0.457 0.457 0.269
M1 0.042 0.020 2.057 0.040 0.042 0.509
M2 0.031 0.014 2.199 0.028 0.031 0.609
Scales y*:
Estimate Std.Err Z-value P(>|z|) Std.lv Std.all
Coex 1.000 1.000 1.000
R-Square:
Estimate
Coex 0.731
M1 0.491
M2 0.391
Defined Parameters:
Estimate Std.Err Z-value P(>|z|) Std.lv Std.all
indirect1 -0.583 0.388 -1.501 0.133 -0.583 -0.293
indirect2 -0.768 0.383 -2.007 0.045 -0.768 -0.386
total 1.276 1.036 1.231 0.218 1.276 0.641
direct 0.440 0.227 1.936 0.053 0.440 0.453
probit11 0.646 0.280 2.305 0.021 0.646 0.483
probit10 0.917 0.273 3.354 0.001 0.917 0.753
probit00 -0.304 0.533 -0.571 0.568 -0.304 -0.464
indirect -0.080 0.036 -2.232 0.026 -0.080 -0.089
direct 0.440 0.227 1.936 0.053 0.440 0.453
OR.indirect 0.626 0.112 5.566 0.000 0.626 0.635
OR.direct 7.443 7.917 0.940 0.347 7.443 7.247
1. how can I account for the R2 and p-value of the direct way (c) and each indirect way to predict Coex (=coexistence)? (R2= 0.731 or do i have to calculate something else? Which p-value counts? the one I obtained in the regression Coex ~log_size or the one at the end of the results for "direct effects" (p=0.053)?
2. Estimate (b) and (e) are negative... meaning negative Coexis~M1 and coexis~M2 relationships?
2. Coex variance has a p=0.4.... what is the implication for understanding my results?
3. Do I really need the last part of the model (pnorm and probit)? I saw a similar example but I dont fully understand why it is used for. Actually, only one of my two indirect effects was included (should I include the other one?) All my paths but one (Coex ~M1) are significant... is this why my indirect1 is not significant (p=0.133)?
Thanks in advance.