simsem: SIMulated Structural Equation Modeling

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.

Author
Sunthud Pornprasertmanit [aut, cre], Patrick Miller [aut], Alexander Schoemann [aut], Corbin Quick [ctb], Terry Jorgensen [ctb]
Date of publication
2016-06-07 13:53:30
Maintainer
Sunthud Pornprasertmanit <psunthud@gmail.com>
License
GPL (>= 2)
Version
0.5-13
URLs

View on CRAN

Man pages

analyze
Data analysis using the model specification
anova
Provide a comparison of nested models and nonnested models...
bind
Specify matrices for Monte Carlo simulation of structural...
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...
continuousPower
Find power of model parameters when simulations have randomly...
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...
findFactorIntercept
Find factor intercept from regression coefficient matrix and...
findFactorMean
Find factor total means from regression coefficient matrix...
findFactorResidualVar
Find factor residual variances from regression coefficient...
findFactorTotalCov
Find factor total covariance from regression coefficient...
findFactorTotalVar
Find factor total variances from regression coefficient...
findIndIntercept
Find indicator intercepts from factor loading matrix, total...
findIndMean
Find indicator total means from factor loading matrix, total...
findIndResidualVar
Find indicator residual variances from factor loading matrix,...
findIndTotalVar
Find indicator total variances from factor loading matrix,...
findPossibleFactorCor
Find the appropriate position for freely estimated...
findPower
Find a value of independent variables that provides a given...
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
getCutoffNested
Find fit indices cutoff for nested model comparison given a...
getCutoffNonNested
Find fit indices cutoff for non-nested model comparison given...
getExtraOutput
Get extra outputs from the result of simulation
getPopulation
Extract the data generation population model underlying a...
getPower
Find power of model parameters
getPowerFit
Find power in rejecting alternative models based on fit...
getPowerFitNested
Find power in rejecting nested models based on the...
getPowerFitNonNested
Find power in rejecting non-nested models based on the...
imposeMissing
Impose MAR, MCAR, planned missingness, or attrition on a data...
inspect
Extract information from a simulation result
likRatioFit
Find the likelihood ratio (or Bayes factor) based on the...
miss
Specifying the missing template to impose on a dataset
model
Data generation template and analysis template for...
modelLavaan
Build the data generation template and analysis template from...
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...
plotCutoffNested
Plot sampling distributions of the differences in fit indices...
plotCutoffNonNested
Plot sampling distributions of the differences in fit indices...
plotDist
Plot a distribution of a data distribution object
plotLogitMiss
Visualize the missing proportion when the logistic regression...
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...
plotPowerFitNested
Plot power of rejecting a nested model in a nested model...
plotPowerFitNonNested
Plot power of rejecting a non-nested model based on a...
popDiscrepancy
Find the discrepancy value between two means and covariance...
popMisfitMACS
Find population misfit by sufficient statistics
pValue
Find p-values (1 - percentile) by comparing a single analysis...
pValueNested
Find p-values (1 - percentile) for a nested model comparison
pValueNonNested
Find p-values (1 - percentile) for a non-nested model...
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...
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...
summaryFit
Provide summary of model fit across replications
summaryMisspec
Provide summary of the population misfit and...
summaryParam
Provide summary of parameter estimates and standard error...
summaryPopulation
Summarize the population model used for data generation...
summarySeed
Summary of a seed number
summaryShort
Provide short summary of an object.
summaryTime
Time summary

Files in this package

simsem
simsem/inst
simsem/inst/tests
simsem/inst/tests/test_analyze.R
simsem/inst/tests/test_missing.R
simsem/inst/tests/test_drawParam.R
simsem/inst/tests/test_global.R
simsem/inst/tests/test_adjust-methods.R
simsem/inst/tests/test_model.R
simsem/inst/tests/test_bind.R
simsem/NAMESPACE
simsem/R
simsem/R/AllGenerics.R
simsem/R/cov2corMod.R
simsem/R/plotCutoffNested.R
simsem/R/getCutoffNested.R
simsem/R/show-methods.R
simsem/R/model.R
simsem/R/plotCIWidth.R
simsem/R/getCIWidth.R
simsem/R/clean.R
simsem/R/plotPowerFitNonNested.R
simsem/R/getPowerFit.R
simsem/R/AllClass.R
simsem/R/plotPowerFit.R
simsem/R/summary-methods.R
simsem/R/miss.R
simsem/R/exportData.R
simsem/R/findPowerCoverage.R
simsem/R/getPowerCoverage.R
simsem/R/plotCutoff.R
simsem/R/analyze.R
simsem/R/getPowerFitNonNested.R
simsem/R/plotCutoffNonNested.R
simsem/R/plotPowerCoverage.R
simsem/R/getCutoff.R
simsem/R/bind.R
simsem/R/pValueNonNested.R
simsem/R/anova-methods.R
simsem/R/pValueNested.R
simsem/R/plotDist.R
simsem/R/generate.R
simsem/R/openMx.R
simsem/R/drawParam.R
simsem/R/mvrnorm.R
simsem/R/pValue.R
simsem/R/summaryShort-methods.R
simsem/R/sim.R
simsem/R/getCutoffNonNested.R
simsem/R/plotMisfit.R
simsem/R/getPowerFitNested.R
simsem/R/validate.R
simsem/R/summarySimResult.R
simsem/R/find.R
simsem/R/zzz.R
simsem/R/imposeMissing.R
simsem/R/combineSim.R
simsem/R/likRatioFit.R
simsem/R/getKeywords.R
simsem/R/plotPowerFitNested.R
simsem/R/createData.R
simsem/R/bindDist.R
simsem/MD5
simsem/DESCRIPTION
simsem/man
simsem/man/plotMisfit.Rd
simsem/man/plotCIwidth.Rd
simsem/man/getCutoffNonNested.Rd
simsem/man/summaryShort.Rd
simsem/man/summaryTime.Rd
simsem/man/findRecursiveSet.Rd
simsem/man/SimDataDist-class.Rd
simsem/man/anova.Rd
simsem/man/findFactorTotalCov.Rd
simsem/man/getCoverage.Rd
simsem/man/getPowerFitNested.Rd
simsem/man/summaryMisspec.Rd
simsem/man/getPopulation.Rd
simsem/man/SimMissing-class.Rd
simsem/man/findFactorTotalVar.Rd
simsem/man/getExtraOutput.Rd
simsem/man/findIndResidualVar.Rd
simsem/man/popDiscrepancy.Rd
simsem/man/plotCutoffNonNested.Rd
simsem/man/bindDist.Rd
simsem/man/SimVector-class.Rd
simsem/man/popMisfitMACS.Rd
simsem/man/findIndTotalVar.Rd
simsem/man/getPowerFit.Rd
simsem/man/findPossibleFactorCor.Rd
simsem/man/model.Rd
simsem/man/findFactorResidualVar.Rd
simsem/man/findIndMean.Rd
simsem/man/estmodel.Rd
simsem/man/plotPower.Rd
simsem/man/summaryParam.Rd
simsem/man/bind.Rd
simsem/man/exportData.Rd
simsem/man/modelLavaan.Rd
simsem/man/analyze.Rd
simsem/man/SimSem-class.Rd
simsem/man/getCIwidth.Rd
simsem/man/draw.Rd
simsem/man/findIndIntercept.Rd
simsem/man/pValue.Rd
simsem/man/SimResult-class.Rd
simsem/man/setPopulation.Rd
simsem/man/findFactorMean.Rd
simsem/man/getPowerFitNonNested.Rd
simsem/man/plotCutoff.Rd
simsem/man/getCutoff.Rd
simsem/man/likRatioFit.Rd
simsem/man/summaryConverge.Rd
simsem/man/pValueNested.Rd
simsem/man/miss.Rd
simsem/man/getPower.Rd
simsem/man/plotPowerFitNonNested.Rd
simsem/man/findPower.Rd
simsem/man/findFactorIntercept.Rd
simsem/man/rawDraw.Rd
simsem/man/generate.Rd
simsem/man/createData.Rd
simsem/man/imposeMissing.Rd
simsem/man/plotCutoffNested.Rd
simsem/man/combineSim.Rd
simsem/man/plotLogitMiss.Rd
simsem/man/summaryFit.Rd
simsem/man/summaryPopulation.Rd
simsem/man/summarySeed.Rd
simsem/man/plotCoverage.Rd
simsem/man/plotPowerFit.Rd
simsem/man/plotDist.Rd
simsem/man/continuousCoverage.Rd
simsem/man/findCoverage.Rd
simsem/man/SimMatrix-class.Rd
simsem/man/inspect.Rd
simsem/man/getCutoffNested.Rd
simsem/man/pValueNonNested.Rd
simsem/man/coef.Rd
simsem/man/sim.Rd
simsem/man/plotPowerFitNested.Rd
simsem/man/continuousPower.Rd
simsem/man/multipleAllEqual.Rd