Skip to contents

Working with Influence Functions

Functions for working with Influence Functions

estimate(<default>)
Estimation of functional of parameters
IC(<default>)
Extract influence function from model object
multinomial()
Estimate probabilities in contingency table
estimate(<array>)
Estimate parameters and influence function.
iid()
Extract i.i.d. decomposition from model object
stack(<estimate>)
Stack estimating equations
plot(<estimate>)
Plot method for 'estimate' objects

Simulation functions

sim(<lvm>)
Simulate model
sim(<default>)
Monte Carlo simulation
plot(<sim>)
Plot method for simulation 'sim' objects
summary(<sim>)
Summary method for 'sim' objects

Statistical Inference and model tools

diagtest()
Calculate diagnostic tests for 2x2 table
contr()
Create contrast matrix
bootstrap()
Generic bootstrap method
backdoor()
Backdoor criterion
closed_testing()
Closed testing procedure
scheffe()
Calculate simultaneous confidence limits by Scheffe's method
zibreg()
Regression model for binomial data with unkown group of immortals
wkm()
Weighted K-means
dsep(<lvm>)
Check d-separation criterion
pcor()
Polychoric correlation
partialcor()
Calculate partial correlations
ordreg()
Univariate cumulative link regression models
mvnmix()
Estimate mixture latent variable model
equivalence()
Identify candidates of equivalent models
gof() moments() logLik(<lvmfit>) score(<lvmfit>) information(<lvmfit>)
Extract model summaries and GOF statistics for model object
confpred()
Conformal prediction
mixture()
Estimate mixture latent variable model.
plot(<lvm>)
Plot path diagram
predict(<lvm>)
Prediction in structural equation models
predictlvm()
Predict function for latent variable models

Data sets

bmd
Longitudinal Bone Mineral Density Data (Wide format)
bmidata
Data
brisa
Simulated data
calcium
Longitudinal Bone Mineral Density Data
deprdiag
50 patients from Monash Medical Centre, Melbourne
hubble
Hubble data
hubble2
Hubble data
indoorenv
Data
nldata
Example data (nonlinear model)
missingdata
Missing data example
nsem
Example SEM data (nonlinear)
semdata
Example SEM data
serotonin
Serotonin data
twindata
Twin menarche data

Graphics functions

Col()
Generate a transparent RGB color
curly()
Adds curly brackets to plot
fplot()
fplot
confband()
Add Confidence limits bar to plot
ksmooth2()
Plot/estimate surface
click(<default>) idplot()
Identify points on plot
colorbar()
Add color-bar to plot
devcoords()
Returns device-coordinates and plot-region
images()
Organize several image calls (for visualizing categorical data)
plotConf()
Plot regression lines
spaghetti()
Spaghetti plot

Matrix functions and linear algebra utilities

blockdiag()
Combine matrices to block diagonal structure
Inverse()
Generalized matrix inverse
vec()
vec operator
revdiag() offdiag() `revdiag<-`() `offdiag<-`()
Create/extract 'reverse'-diagonal matrix or off-diagonal elements
tr()
Trace operator
rotate2()
Performs a rotation in the plane

Utility functions

By()
Apply a Function to a Data Frame Split by Factors
click(<default>) idplot()
Identify points on plot
wait()
Wait for user input (keyboard or mouse)
Combine()
Report estimates across different models
commutation()
Finds the unique commutation matrix
csplit()
Split data into folds
Expand()
Create a Data Frame from All Combinations of Factors
getSAS()
Read SAS output
PD()
Dose response calculation for binomial regression models
pdfconvert()
Convert pdf to raster format
toformula()
Converts strings to formula
trim()
Trim string of (leading/trailing/all) white spaces
wrapvec()
Wrap vector
NA2x()
Convert to/from NA
na.pass0()
Handle Missing Values in Objects
Grep()
Finds elements in vector or column-names in data.frame/matrix
NR()
Newton-Raphson method
Print()
Generic print method
`%++%`
Concatenation operator
`%ni%`
Matching operator (x not in y) oposed to the %in%-operator (x in y)
lava.options()
Set global options for lava
rbind(<Surv>)
Appending Surv objects

Latent variable model building

Model() `Model<-`()
Extract model
Graph() `Graph<-`()
Extract graph
addvar()
Add variable to (model) object
children()
Extract children or parent elements of object
baptize()
Label elements of object
cancel()
Generic cancel method
sim(<lvm>)
Simulate model
`constrain<-`(<default>) `constrain<-`(<multigroup>) constraints()
Add non-linear constraints to latent variable model
`covariance<-`(<lvm>)
Add covariance structure to Latent Variable Model
startvalues startvalues0 startvalues1 startvalues2 starter.multigroup modelPar modelVar matrices pars pars.lvm regfix pars.lvmfit pars.glm score.glm procdata.lvmfit mat.lvm reorderdata graph2lvm igraph.lvm subgraph finalize randomslope randomslope<- lisrel variances offdiags describecoef parlabels rsq stdcoef CoefMat CoefMat.multigroupfit deriv updatelvm checkmultigroup profci estimate.MAR missingModel Identical gaussian_logLik.lvm addhook gethook multigroup Weights fixsome IV parameter Specials procformula getoutcome decomp.specials rmvn0 dmvn0 logit expit tigol
For internal use
`labels<-`(<default>) `edgelabels<-`(<lvm>) `nodecolor<-`(<default>)
Define labels of graph
vars() endogenous() exogenous() manifest() latent() `exogenous<-`(<lvm>) `latent<-`(<lvm>)
Extract variable names from latent variable model
eventTime()
Add an observed event time outcome to a latent variable model.
index(<lvm>) `index<-`(<lvm>)
Extract the parameter indicies of a lvm object
index() `index<-`()
Generic method for extract index of an object
`intercept<-`(<lvm>)
Fix mean parameters in 'lvm'-object
intervention(<lvm>)
Define intervention
`rmvar<-`()
Remove variables from (model) object.
lvm()
Initialize new latent variable model
makemissing()
Create random missing data
subset(<lvm>)
Extract subset of latent variable model
`ordinal<-`()
Define variables as ordinal
parpos()
Generic method for finding indeces of model parameters
path(<lvm>) effects(<lvmfit>)
Extract pathways in model graph
Range.lvm()
Define range constraints of parameters
regression(<lvm>) `regression<-`(<lvm>)
Add regression association to latent variable model
timedep()
Time-dependent parameters
Missing()
Missing value generator
binomial.rd()
Define constant risk difference or relative risk association for binary exposure

Latent variable model estimation

estimate(<lvm>)
Estimation of parameters in a Latent Variable Model (lvm)
bootstrap(<lvm>) bootstrap(<lvmfit>)
Calculate bootstrap estimates of a lvm object
confint(<lvmfit>)
Calculate confidence limits for parameters
complik()
Composite Likelihood for probit latent variable models
correlation()
Generic method for extracting correlation coefficients of model object
twostageCV()
Cross-validated two-stage estimator
modelsearch()
Model searching
twostage(<lvmfit>)
Two-stage estimator (non-linear SEM)
measurement.error()
Two-stage (non-linear) measurement error
twostage()
Two-stage estimator
compare()
Statistical tests