Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: names in lavaan_extract #36

Merged
merged 2 commits into from
Jun 19, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 6 additions & 22 deletions tests/testthat/_snaps/lavaan_defined.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
Code
lavaan_defined(fit)
Output
User-Defined Parameter Paths SE Z
30 ageyr → visual → speed ageyr_visual*visual_speed 0.02808889 -3.198387
31 ageyr → visual → speed ageyr_visual*visual_textual 0.04191650 -3.461890
32 ageyr → visual → speed grade_visual*visual_speed 0.07291514 4.257496
33 ageyr → visual → speed grade_visual*visual_textual 0.10134908 4.947490
User-Defined Parameter Paths SE Z
30 ageyr → visual → speed ageyr_visual*visual_speed 0.02808889 -3.198387
31 ageyr → visual → textual ageyr_visual*visual_textual 0.04191650 -3.461890
32 grade → visual → speed grade_visual*visual_speed 0.07291514 4.257496
33 grade → visual → textual grade_visual*visual_textual 0.10134908 4.947490
p b CI_lower CI_upper B CI_lower_B
30 1.381987e-03 -0.08983914 -0.1448924 -0.03478593 -0.1508037 -0.2358595
31 5.363956e-04 -0.14511033 -0.2272652 -0.06295550 -0.1534909 -0.2371048
Expand All @@ -23,22 +23,6 @@

Code
lavaan_defined(fit, nice_table = TRUE)
Output
a flextable object.
col_keys: `User-Defined Parameter`, `Paths`, `SE`, `Z`, `p`, `b`, `95% CI (b)`, `B`, `95% CI (B)`
header has 1 row(s)
body has 4 row(s)
original dataset sample:
User-Defined Parameter Paths SE Z
30 ageyr → visual → speed ageyr_visual*visual_speed 0.02808889 -3.198387
31 ageyr → visual → speed ageyr_visual*visual_textual 0.04191650 -3.461890
32 ageyr → visual → speed grade_visual*visual_speed 0.07291514 4.257496
33 ageyr → visual → speed grade_visual*visual_textual 0.10134908 4.947490
p b 95% CI (b) B 95% CI (B)
30 1.381987e-03 -0.08983914 [-0.14, -0.03] -0.1508037 [-0.24, -0.07]
31 5.363956e-04 -0.14511033 [-0.23, -0.06] -0.1534909 [-0.24, -0.07]
32 2.067294e-05 0.31043593 [0.17, 0.45] 0.2477787 [0.15, 0.35]
33 7.517664e-07 0.50142352 [0.30, 0.70] 0.2521937 [0.16, 0.34]

# nice_fit total effects

Expand All @@ -47,7 +31,7 @@
Output
User-Defined Parameter Paths SE Z p b
7 ab a*b 0.09204847 4.058692 4.934835e-05 0.3735964
8 ab c+(a*b) 0.12471394 3.287131 1.012138e-03 0.4099510
8 total c+(a*b) 0.12471394 3.287131 1.012138e-03 0.4099510
CI_lower CI_upper B CI_lower_B CI_upper_B
7 0.1931847 0.5540081 0.2845821 0.1638308 0.4053334
8 0.1655162 0.6543859 0.3122748 0.1397572 0.4847923
Expand Down
Loading