simsem0.5-16 package

SIMulated Structural Equation Modeling

getCutoffNested

Find fit indices cutoff for nested model comparison given a priori alp...

analyze

Data analysis using the model specification

anova

Provide a comparison of nested models and nonnested models across repl...

bind

Specify matrices for Monte Carlo simulation of structural equation mod...

bindDist

Create a data distribution object.

coef

Extract parameter estimates from a simulation result

combineSim

Combine result objects

continuousCoverage

Find coverage rate of model parameters when simulations have randomly ...

continuousPower

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

createData

Create data from a set of drawn parameters.

draw

Draw parameters from a SimSem object.

estmodel

Shortcut for data analysis template for simulation.

exportData

Export data sets for analysis with outside SEM program.

findCoverage

Find a value of independent variables that provides a given value of c...

findFactorIntercept

Find factor intercept from regression coefficient matrix and factor to...

findFactorMean

Find factor total means from regression coefficient matrix and factor ...

findFactorResidualVar

Find factor residual variances from regression coefficient matrix, fac...

findFactorTotalCov

Find factor total covariance from regression coefficient matrix, facto...

findFactorTotalVar

Find factor total variances from regression coefficient matrix, factor...

findIndIntercept

Find indicator intercepts from factor loading matrix, total factor mea...

findIndMean

Find indicator total means from factor loading matrix, total factor me...

findIndResidualVar

Find indicator residual variances from factor loading matrix, total fa...

findIndTotalVar

Find indicator total variances from factor loading matrix, total facto...

findPossibleFactorCor

Find the appropriate position for freely estimated correlation (or cov...

findPower

Find a value of independent variables that provides a given value of p...

findRecursiveSet

Group variables regarding the position in mediation chain

generate

Generate data using SimSem template

getCIwidth

Find confidence interval width

getCoverage

Find coverage rate of model parameters

getCutoff

Find fit indices cutoff given a priori alpha level

getCutoffNonNested

Find fit indices cutoff for non-nested model comparison given a priori...

getExtraOutput

Get extra outputs from the result of simulation

getPopulation

Extract the data generation population model underlying a result objec...

getPower

Find power of model parameters

getPowerFit

Find power in rejecting alternative models based on fit indices criter...

getPowerFitNested

Find power in rejecting nested models based on the differences in fit ...

getPowerFitNonNested

Find power in rejecting non-nested models based on the differences in ...

imposeMissing

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

inspect

Extract information from a simulation result

likRatioFit

Find the likelihood ratio (or Bayes factor) based on the bivariate dis...

miss

Specifying the missing template to impose on a dataset

model

Data generation template and analysis template for simulation.

modelLavaan

Build the data generation template and analysis template from the lava...

multipleAllEqual

Test whether all objects are equal

plotCIwidth

Plot a confidence interval width of a target parameter

plotCoverage

Make a plot of confidence interval coverage rates

plotCutoff

Plot sampling distributions of fit indices with fit indices cutoffs

plotCutoffNested

Plot sampling distributions of the differences in fit indices between ...

plotCutoffNonNested

Plot sampling distributions of the differences in fit indices between ...

plotDist

Plot a distribution of a data distribution object

plotLogitMiss

Visualize the missing proportion when the logistic regression method i...

plotMisfit

Plot the population misfit in the result object

plotPower

Make a power plot of a parameter given varying parameters

plotPowerFit

Plot sampling distributions of fit indices that visualize power of rej...

plotPowerFitNested

Plot power of rejecting a nested model in a nested model comparison by...

plotPowerFitNonNested

Plot power of rejecting a non-nested model based on a difference in fi...

popDiscrepancy

Find the discrepancy value between two means and covariance matrices

popMisfitMACS

Find population misfit by sufficient statistics

pValue

Find p-values (1 - percentile) by comparing a single analysis output f...

pValueNested

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

pValueNonNested

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

rawDraw

Draw values from vector or matrix objects

setPopulation

Set the data generation population model underlying an object

sim

Run a Monte Carlo simulation with a structural equation model.

SimDataDist-class

Class "SimDataDist": Data distribution object

SimMatrix-class

Matrix object: Random parameters matrix

SimMissing-class

Class "SimMissing"

SimResult-class

Class "SimResult": Simulation Result Object

SimSem-class

Class "SimSem"

SimVector-class

Vector object: Random parameters vector

summaryConverge

Provide a comparison between the characteristics of convergent replica...

summaryFit

Provide summary of model fit across replications

summaryMisspec

Provide summary of the population misfit and misspecified-parameter va...

summaryParam

Provide summary of parameter estimates and standard error across repli...

summaryPopulation

Summarize the population model used for data generation underlying a r...

summarySeed

Summary of a seed number

summaryShort

Provide short summary of an object.

summaryTime

Time summary

Provides an easy framework for Monte Carlo simulation in structural equation modeling, which can be used for various purposes, such as such as model fit evaluation, power analysis, or missing data handling and planning.

  • Maintainer: Terrence D. Jorgensen
  • License: GPL (>= 2)
  • Last published: 2021-03-28