The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.

R build status cran version Monthly Downloads Total Downloads Rdoc

symSEM

Symbolic Computation for Structural Equation Models

The symSEM package uses the caracas package, which depends on the SymPy library, for the symbolic computations.

The stable version can be installed from CRAN by:

install.packages("symSEM")

The developmental version can be installed from GitHub by:

## Install remotes package if it has not been installed yet
# install.packages("remotes")

remotes::install_github("mikewlcheung/symsem")

Example

Compute a symbolic model-implied covariance and correlation matrices

library(symSEM)

## A regression model
model <- "y ~ b1*x1 + b2*x2
          ## Covariance between x1 and x2
          x1 ~~ x2
          ## Means
          y ~ b0*1
          x1 ~ m1*1
          x2 ~ m2*1"

## Convert it into a RAM speculation
RAM <- metaSEM::lavaan2RAM(model)

## Implied covariance matrix and mean structure
impliedS(RAM, corr=FALSE)

## Implied correlation matrix
impliedS(RAM, corr=TRUE)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.