see icon indicating copy to clipboard operation
see copied to clipboard

SEM plots: Include "1" in triangle if means in parameters

Open bwiernik opened this issue 4 years ago • 4 comments

Plots for models with a mean structure typically include a 1 in a triangle with the paths indicating the means/intercepts. Could this be added if the parameters() output includes means?

bwiernik avatar Apr 12 '21 15:04 bwiernik

Could this be added if the parameters() output includes means?

Yes with some additional code, I don't see why not. But it would require model_parameters() to return them first

DominiqueMakowski avatar Apr 13 '21 00:04 DominiqueMakowski

Do you have a reprex, so I know what should be returned?

strengejacke avatar Apr 13 '21 06:04 strengejacke

According to the docs, you can return the mean component already: https://easystats.github.io/parameters/reference/model_parameters.lavaan.html

strengejacke avatar Apr 13 '21 06:04 strengejacke

Yes you can already get means into parameters by adding "mean" to component. This is currently ignored by the plotting function

bwiernik avatar Apr 13 '21 10:04 bwiernik