Is it possible to get credible intervals for regression paths using Blavaan package? Or, p-values for the regression estimates?
R Code:
###------------Run Model: 1A----------------###
Model1A <- '
C_ERC_ER ~ Valid + S_CCNES
S_CCNES ~ C_attachment
Valid ~ C_attachment
C_ERC_ER ~ C_attachment
#Estimating variances of exogenous variables
C_ERC_ER ~~ C_ERC_ER
S_CCNES ~~ S_CCNES
Valid ~~ Valid
Estimating covariances of exogenous variables
S_CCNES ~~ Valid
'
#Estimating residual variances for endogenous variables
###---evaluate model fit---###
fit1A <- bsem(
Model1A, data=data, n.chains = 2,
burnin = 1000, sample = 1000,
target = "stan")
coef(fit1A)
Output:
> summary(fit1A)
lavaan 0.6-11 ended normally after 1000 iterations
Estimator BAYES
Optimization method NLMINB
Number of model parameters 12
Used Total
Number of observations 117 118
Number of missing patterns 2
Model Test User Model:
Test statistic -477.860
Degrees of freedom NA
Test statistic 0.499
Degrees of freedom NA
Parameter Estimates:
Regressions:
Estimate
C_ERC_ER ~
Valid -0.551
S_CCNES 0.689
S_CCNES ~
C_attachment 0.002
Valid ~
C_attachment -0.000
C_ERC_ER ~
C_attachment 0.048
Covariances:
Estimate
.S_CCNES ~~
.Valid 0.007
Intercepts:
Estimate
.C_ERC_ER 5.814
.S_CCNES 5.404
.Valid 0.742
Variances:
Estimate
.C_ERC_ER 6.144
.S_CCNES 0.706
.Valid 0.076
summary(), so it looks like your model might not have converged. Were there any warning messages you didn't copy/paste? – Terrence Oct 16 '22 at 07:58