Learn R Programming

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

lava (version 1.5)

Latent Variable Models

Description

Estimation and simulation of latent variable models.

Copy Link

Version

Install

install.packages('lava')

Monthly Downloads

117,538

Version

1.5

License

GPL-3

Issues

Pull Requests

Stars

Forks

Maintainer

Klaus Holst

Last Published

March 16th, 2017

Functions in lava (1.5)

timedep

Time-dependent parameters
Graph

Extract graph
bmidata

Data
getMplus

Read Mplus output
By

Apply a Function to a Data Frame Split by Factors
Col

Generate a transparent RGB color
blockdiag

Combine matrices to block diagonal structure
bmd

Longitudinal Bone Mineral Density Data (Wide format)
commutation

Finds the unique commutation matrix
compare

Statistical tests
dsep.lvm

Check d-separation criterion
confint.lvmfit

Calculate confidence limits for parameters
constrain<-

Add non-linear constraints to latent variable model
devcoords

Returns device-coordinates and plot-region
diagtest

Calculate diagnostic tests for 2x2 table
bootstrap

Generic bootstrap method
lvm

Initialize new latent variable model
modelsearch

Model searching
subset.lvm

Extract subset of latent variable model
missingdata

Missing data example
serotonin2

Data
getSAS

Read SAS output
labels<-

Define labels of graph
lava-package

Estimation and simulation of latent variable models
multinomial

Estimate probabilities in contingency table
partialcor

Calculate partial correlations
nldata

Example data (nonlinear model)
path

Extract pathways in model graph
serotonin

Serotonin data
toformula

Converts strings to formula
Missing

Missing value generator
tr

Trace operator
revdiag

Create/extract 'reverse'-diagonal matrix or off-diagonal elements
vec

vec operator
vars

Extract variable names from latent variable model
PD

Dose response calculation for binomial regression models
backdoor

Backdoor criterion
baptize

Label elements of object
complik

Composite Likelihood for probit latent variable models
confband

Add Confidence limits bar to plot
Model

Extract model
covariance

Add covariance structure to Latent Variable Model
eventTime

Add an observed event time outcome to a latent variable model.
fplot

fplot
density.sim

Plot sim object
intercept

Fix mean parameters in 'lvm'-object
startvalues

For internal use
%ni%

Matching operator (x not in y) oposed to the
ordreg

Univariate cumulative link regression models
plot.lvm

Plot path diagram
plotConf

Plot regression lines
scheffe

Calculate simultaneous confidence limits by Scheffe's method
semdata

Example SEM data
twostage

Two-stage estimator
twostage.lvmfit

Two-stage estimator (non-linear SEM)
children

Extract children or parent elements of object
click

Identify points on plot
gof

Extract model summaries and GOF statistics for model object
addvar

Add variable to (model) object
Range.lvm

Define range constraints of parameters
calcium

Longitudinal Bone Mineral Density Data
cancel

Generic cancel method
colorbar

Add color-bar to plot
contr

Create contrast matrix
correlation

Generic method for extracting correlation coefficients of model object
closed.testing

Closed testing procedure
makemissing

Create random missing data
images

Organize several image calls (for visualizing categorical data)
indoorenv

Data
hubble

Hubble data
nsem

Example SEM data (nonlinear)
%++%

Concatenation operator
predict.lvm

Prediction in structural equation models
predictlvm

Predict function for latent variable models
sim

Simulate model
wrapvec

Wrap vector
sim.default

Wrapper function for mclapply
zibreg

Regression model for binomial data with unkown group of immortals
measurement.error

Two-stage (non-linear) measurement error
regression<-

Add regression association to latent variable model
Combine

Report estimates across different models
Expand

Create a Data Frame from All Combinations of Factors
bootstrap.lvm

Calculate bootstrap estimates of a lvm object
estimate.default

Estimation of functional of parameters
brisa

Simulated data
estimate.lvm

Estimation of parameters in a Latent Variable Model (lvm)
kill

Remove variables from (model) object.
ksmooth2

Plot/estimate surface
org

Convert object to ascii suitable for org-mode
parpos

Generic method for finding indeces of model parameters
trim

Trim tring of (leading/trailing/all) white spaces
twindata

Twin menarche data
pcor

Polychoric correlation
spaghetti

Spaghetti plot
pdfconvert

Convert pdf to raster format
stack.estimate

Stack estimating equations
hubble2

Hubble data
iid

Extract i.i.d. decomposition (influence function) from model object
lava.options

Set global options for
equivalence

Identify candidates of equivalent models