Learn R Programming

stremo (version 0.2)

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

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

"residuals"(object, ...)

Arguments

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

Value

A nvar x nvar covariance

Examples

Run this code
## Not run: 
# data(albert)
# fit <- fit.nlminb(albert.model, albert.litho.cov, 107)
# residuals(fit)
# ## End(Not run)

Run the code above in your browser using DataLab