Learn R Programming

RAMpath (version 0.5.1)

Structural Equation Modeling Using the Reticular Action Model (RAM) Notation

Description

We rewrite of RAMpath software developed by John McArdle and Steven Boker as an R package. In addition to performing regular SEM analysis through the R package lavaan, RAMpath has unique features. First, it can generate path diagrams according to a given model. Second, it can display path tracing rules through path diagrams and decompose total effects into their respective direct and indirect effects as well as decompose variance and covariance into individual bridges. Furthermore, RAMpath can fit dynamic system models automatically based on latent change scores and generate vector field plots based upon results obtained from a bivariate dynamic system. Starting version 0.4, RAMpath can conduct power analysis for both univariate and bivariate latent change score models.

Copy Link

Version

Install

install.packages('RAMpath')

Monthly Downloads

516

Version

0.5.1

License

GPL-2

Maintainer

Last Published

August 27th, 2023

Functions in RAMpath (0.5.1)

powerBLCS

Power analysis for bivariate latent change score models
lavaan2ram

Convert lavaan output to RAM matrices
isNumeric

Is the input a numeric variable
plot.lcs.power

Plot the power curve for each specified parameter
ramVF

Generate a vector field plot based on the bivariate lcsm
summary.RAMpath

Calculate the total and individual contribution for each path and bridge
ramReFit

Refit a model with additional paths
ramEffectSE

Sobel standard error for a given effect
ramBLCS

Conduct bivariate latent change score analysis
ramRmOne

Internal function
ramShowModel

Show the model using Lavvan model syntax
ramUniquePath

Get the uniques paths
powerLCS

Power analysis for univariate latent change score models
ram2lavaan

RAM model to lavaan model
makeSpanList

Make a list of spans
plot.RAMpath

Plot the path diagram according to RAM path and bridges or Plot the vector field for the bivariate latent change score model
makePathList

Make a list of effects
RAMpath-package

RAMpath for SEM analysis
ex1

Example data set 1
ramFit

Fit a model using lavaan based on ram input
ex2

Example data set 2
makeBridgeList

Generate all bridges
ex3

Example data set 3
ramParseLavaan

lavaan to ram
ramPathBridge

Generate path and bridges
ramMatrix

Generate ram matrices based on ram input
ramLCM

Conduct growth curve analysis
ramIndex

To be added
ramFlip

Flip the ram path
ramLCS

Univariate latent change score model