Published on *OpenMx* (http://openmx.psyc.virginia.edu)

By *tbates*

Created *04/20/2013 - 10:26*

Sat, 04/20/2013 - 10:26 — tbates [1]

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 `(a-c) + (a-b * b-c)`

If not, it might be a handy addition, and encourage people to report the expected effects in their model rather than just fit. i.e., "All things being equal, this model of our theory suggests that an increase of 50 kg/day of saccharin would decrease lifespan by 1-second, via the following pathways..."

**Links:**

[1] http://openmx.psyc.virginia.edu/users/tbates

[2] http://openmx.psyc.virginia.edu/thread/2070

[3] http://openmx.psyc.virginia.edu/forums/third-party-software/simsem-and-semtools