simsem and semTools

Posted on
No user picture. blazej Joined: 11/20/2018

Calculate sample size for an indirect effect using simsem

Please note - I posted this on simsem github but I feel here is more adequate
(https://github.com/simsem/simsem/issues/55)

Hello,

I'm somehow new to the subject of running simulations and would very much appreciate some help in sorting out how to set up code for estimating sample size to observe an indirect effect in a setup like this:

https://user-images.githubusercontent.com/22635132/51598061-058a0000-1efd-11e9-94b7-f7722cab2cb3.png

Values represent typical effect sizes observed in previous research.

Posted on
Picture of user. tbates Joined: 07/31/2009

Function to add up paths (path tracing rules function)

Anyone know of a function to take a RAM model and an entry and exit point and output a total effect?

i.e., given A model m1 = A<->B; B->C; A->C

pathEffect(m1, from="A", to= "C")

Would output the product of paths

Posted on
Picture of user. Aschoemann Joined: 02/11/2013

simsem and semTools

Welcome to the simsem and semTools forum! simsem and semTools are R packages (available on CRAN) that provide additional functionality for structural equation modeling in R.

simsem provides comprehensive simulation functionality for structural equation modeling. simsem allows data generation based on a user specified model, analyses of generated data, and storage and processing of simulation results. Data generation and analysis models using can be specified using lavaan syntax, or OpenMx model specifications, or a set of matrices.

For further details on simsem see: http://simsem.org