Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


⚠️There's a newer version (0.5-17) of this package.Take me there.

simsem (version 0.4-6)

SIMulated Structural Equation Modeling.

Description

This package can be used to generate data using the structural equation modeling framework. This package is tailored to use those simulated data for various purposes, such as model fit evaluation, power analysis, or missing data handling and planning.

Copy Link

Version

Install

install.packages('simsem')

Monthly Downloads

1,283

Version

0.4-6

License

GPL (>= 2)

Last Published

December 31st, 2012

Functions in simsem (0.4-6)

SimResult-class

Class "SimResult": Simulation Result Object
SimMissing-class

Class "SimMissing"
SimSem-class

Class "SimSem"
generate

Generate data using SimSem template
continuousPower

Find power of model parameters when simulations have randomly varying parameters
getCutoffNested

Find fit indices cutoff for nested model comparison given a priori alpha level
imposeMissing

Impose MAR, MCAR, planned missingness, or attrition on a data set
getPowerFitNested

Find power in rejecting nested models based on the differences in fit indices
pValueNonNested

Find p-values (1 - percentile) for a non-nested model comparison
summaryFit

Provide summary of model fit across replications
summaryPopulation

Summarize the population model used for data generation underlying a result object
findFactorResidualVar

Find factor residual variances from regression coefficient matrix, factor (residual) correlations, and total factor variances
findFactorTotalCov

Find factor total covariance from regression coefficient matrix, factor residual covariance
findIndTotalVar

Find indicator total variances from factor loading matrix, total factor covariance, and indicator residual variances.
findPower

Find a value of independent variables that provides a given value of power.
model.lavaan

Build the data generation template and analysis template from the lavaan result
pValue

Find p-values (1 - percentile)
plotDist

Plot a distribution of a data distribution object
popDiscrepancy

Find the discrepancy value between two means and covariance matrices
findPossibleFactorCor

Find the appropriate position for freely estimated correlation (or covariance) given a regression coefficient matrix
findFactorMean

Find factor total means from regression coefficient matrix and factor intercept
findRecursiveSet

Group variables regarding the position in mediation chain
model

Data generation template and analysis template for simulation.
plotCutoffNested

Plot sampling distributions of the differences in fit indices between nested models with fit indices cutoffs
summaryConverge

Provide a comparison between the characteristics of convergent replications and nonconvergent replications
plotLogitMiss

Visualize the missing proportion when the logistic regression method is used.
setPopulation

Set the data generation population model underlying an object
bindDist

Create a data distribution object.
findFactorIntercept

Find factor intercept from regression coefficient matrix and factor total means
findIndResidualVar

Find indicator residual variances from factor loading matrix, total factor covariance, and total indicator variances.
anova

Provide a comparison of nested models and nonnested models across replications
plotMisfit

Plot the population misfit in the result object
getExtraOutput

Get extra outputs from the result of simulation
plotPowerFitNonNested

Plot power of rejecting a non-nested model based on a difference in fit index
sim

Run a monte carlo simulation with a structural equation model.
summaryMisspec

Provide summary of the population misfit and misspecified-parameter values across replications
SimMatrix-class

Matrix object: Random parameters matrix
estmodel

Shortcut for data analysis template for simulation.
getCutoffNonNested

Find fit indices cutoff for non-nested model comparison given a priori alpha level
getCutoff

Find fit indices cutoff given a priori alpha level
findIndIntercept

Find indicator intercepts from factor loading matrix, total factor mean, and indicator mean.
plotCutoffNonNested

Plot sampling distributions of the differences in fit indices between non-nested models with fit indices cutoffs
plotPower

Make a power plot of a parameter given varying parameters
summaryParam

Provide summary of parameter estimates and standard error across replications
exportData

Export data sets for analysis with outside SEM program.
bind

Specify matrices for Monte Carlo simulation of structural equation models
createData

Create data from a set of drawn parameters.
getPowerFit

Find power in rejecting alternative models based on fit indices criteria
pValueNested

Find p-values (1 - percentile) for a nested model comparison
rawDraw

Draw values from vector or matrix objects
likRatioFit

Find the likelihood ratio (or Bayes factor) based on the bivariate distribution of fit indices
plotCutoff

Plot sampling distributions of fit indices with fit indices cutoffs
summaryShort

Provide short summary of an object.
SimDataDist-class

Class "SimDataDist": Data distribution object
draw

Draw parameters from a SimSem object.
getPopulation

Extract the data generation population model underlying a result object
miss

Specifying the missing template to impose on a dataset
popMisfitMACS

Find population misfit by sufficient statistics
analyze

Data analysis using the model specification
findIndMean

Find indicator total means from factor loading matrix, total factor mean, and indicator intercept.
SimVector-class

Vector object: Random parameters vector
getPower

Find power of model parameters
getPowerFitNonNested

Find power in rejecting non-nested models based on the differences in fit indices
plotPowerFit

Plot sampling distributions of fit indices that visualize power of rejecting datasets underlying misspecified models
plotPowerFitNested

Plot power of rejecting a nested model in a nested model comparison by each fit index
findFactorTotalVar

Find factor total variances from regression coefficient matrix, factor (residual) correlations, and factor residual variances
multipleAllEqual

Test whether all objects are equal