R语言 Lavaan中的CFA未将因子加载设置为1

sr4lhrrt  于 2023-01-15  发布在  其他
关注(0)|答案(1)|浏览(158)

****我是第一次使用Lavaan pkg在R中运行CFA。我已经设置好了一切,但是由于某种原因,我没有一个因子加载设置为1。我想知道为什么Lavaan没有自动为每个因子设置一个加载。

这是我使用的代码:****

  1. model1<-'comm=~relimport+relthink+relhurt
  2. Ind=~attend+prayer+relread
  3. relimport~~relthink'
  4. fit1 <-cfa(model1, data=SIM1, std.lv=TRUE)
  5. summary (fit1, ci=T, standardized=T, fit.measures=T )
  6. modindices(fit1, minimum.value=10, sort=TRUE)
  7. lavaanPlot(model=fit1, node_options=list(shape="box", fontname= "Helvetica"),
  8. edge_options=list(color="grey"), coefs=TRUE, stand=TRUE)

以下是我的输出:

  1. lavaan 0.6.13 ended normally after 30 iterations
  2. Estimator ML
  3. Optimization method NLMINB
  4. Number of model parameters 14
  5. Used Total
  6. Number of observations 796 1769
  7. Model Test User Model:
  8. Test statistic 2.707
  9. Degrees of freedom 7
  10. P-value (Chi-square) 0.911
  11. Model Test Baseline Model:
  12. Test statistic 1394.558
  13. Degrees of freedom 15
  14. P-value 0.000
  15. User Model versus Baseline Model:
  16. Comparative Fit Index (CFI) 1.000
  17. Tucker-Lewis Index (TLI) 1.007
  18. Loglikelihood and Information Criteria:
  19. Loglikelihood user model (H0) -7374.779
  20. Loglikelihood unrestricted model (H1) -7373.425
  21. Akaike (AIC) 14777.558
  22. Bayesian (BIC) 14843.072
  23. Sample-size adjusted Bayesian (SABIC) 14798.615
  24. Root Mean Square Error of Approximation:
  25. RMSEA 0.000
  26. 90 Percent confidence interval - lower 0.000
  27. 90 Percent confidence interval - upper 0.017
  28. P-value H_0: RMSEA <= 0.050 1.000
  29. P-value H_0: RMSEA >= 0.080 0.000
  30. Standardized Root Mean Square Residual:
  31. SRMR 0.008
  32. Parameter Estimates:
  33. Standard errors Standard
  34. Information Expected
  35. Information saturated (h1) model Structured
  36. Latent Variables:
  37. Estimate Std.Err z-value P(>|z|) ci.lower ci.upper Std.lv
  38. comm =~
  39. relimport 0.796 0.050 15.875 0.000 0.698 0.894 0.796
  40. relthink 0.735 0.062 11.784 0.000 0.613 0.857 0.735
  41. relhurt 0.660 0.061 10.827 0.000 0.540 0.779 0.660
  42. Ind =~
  43. attend 0.685 0.048 14.408 0.000 0.591 0.778 0.685
  44. prayer 1.605 0.065 24.794 0.000 1.478 1.732 1.605
  45. relread 1.134 0.052 21.960 0.000 1.033 1.235 1.134
  46. Std.all
  47. 0.926
  48. 0.672
  49. 0.455
  50. 0.523
  51. 0.844
  52. 0.757
  53. Covariances:
  54. Estimate Std.Err z-value P(>|z|) ci.lower ci.upper Std.lv
  55. .relimport ~~
  56. .relthink -0.007 0.069 -0.104 0.917 -0.143 0.129 -0.007
  57. comm ~~
  58. Ind 0.609 0.043 14.108 0.000 0.525 0.694 0.609
  59. Std.all
  60. -0.027
  61. 0.609
  62. Variances:
  63. Estimate Std.Err z-value P(>|z|) ci.lower ci.upper Std.lv
  64. .relimport 0.106 0.071 1.489 0.137 -0.033 0.245 0.106
  65. .relthink 0.658 0.084 7.874 0.000 0.494 0.822 0.658
  66. .relhurt 1.668 0.097 17.268 0.000 1.479 1.857 1.668
  67. .attend 1.242 0.068 18.253 0.000 1.109 1.376 1.242
  68. .prayer 1.040 0.125 8.286 0.000 0.794 1.286 1.040
  69. .relread 0.955 0.075 12.676 0.000 0.807 1.103 0.955
  70. comm 1.000 1.000 1.000 1.000
  71. Ind 1.000 1.000 1.000 1.000
  72. Std.all
  73. 0.143
  74. 0.549
  75. 0.793
  76. 0.726
  77. 0.288
  78. 0.426
aoyhnmkz

aoyhnmkz1#

我发现std.lv=TRUE实际上是在告诉R-Lavaan不要将第一个因子设置为1。

相关问题