Skip to content

Commit 28987d6

Browse files
20260319 - computed parameters
1 parent 3dbd329 commit 28987d6

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

sem.qmd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,16 @@ y2 ~~ label1*1 # parameter labels
139139
x1 ~~ 0*1 # fix intercept to 0
140140
```
141141

142+
Computed parameters:
143+
144+
```r
145+
diff := loadingGroup1 - loadingGroup2 # testing whether there is a difference between two coefficients
146+
147+
totalEffect := directEffect + indirectEffect # calculating the total effect from the sum of the direct and indirect effects
148+
totalEffectAbs := abs(directEffect) + abs(indirectEffect) # calculating the total effect from the sum of the (absolute value of the) direct and indirect effects
149+
Pm := abs(indirectEffect) / totalEffectAbs # proportion of the total effect that is mediated
150+
```
151+
142152
Parameter labels for multiple groups (have as many labels as there are groups):
143153

144154
```r

0 commit comments

Comments
 (0)