residuals.sem: Residuals of a fitted path or structural equations model.

Description Usage Arguments Value Examples

Description

This function returns the residuals, that is, the difference between a population covariance matrix and a model-implied one. Useful to look for misspecifications and general fit of the data to the model.

Usage

1
2
## S3 method for class 'sem'
residuals(object, ...)

Arguments

object

An object of class "sem" as returned by fit.nlminb.

...

Not used.

Value

A nvar x nvar covariance

Examples

1
2
3
4
5
6
## Not run: 
data(albert)
fit <- fit.nlminb(albert.model, albert.litho.cov, 107)
residuals(fit)

## End(Not run)

stremo documentation built on Jan. 15, 2017, 7:33 p.m.