Learn R Programming

gimme (version 0.7-18)

residuals.gimme: GIMME Residuals.

Description

This function calculates the unstandardized and standardized residuals of a fitted gimme model.

Usage

residuals.gimme(x, lag)

Value

List of four lists of data frames:

residuals

List of the unstandardized residuals per subject.

standardized.residuals

List of the standardized residuals per subject.

Box.Pierce.test

List of the results of the Box-Pierce test for each subject's residuals.

Ljung.Box.test

List of the results of the Ljung-Box test for each subject's residuals.

Arguments

x

A fitted gimme object.

lag

The number of lags tested in the Box-Pierce and Ljung-Box tests of the residuals. If user does not specify a value, default is the smaller of 10 or the length of the time series divided by 5.

Author

Sebastian Castro-Alvarez

Examples

Run this code
 if (FALSE) {
paths <- 'V2 ~ V1
          V3 ~ V4lag'

fit <- gimmeSEM(data     = simData,
                out      = "C:/simData_out",
                subgroup = TRUE,
                paths    = paths)

residuals <- residuals.gimme(fit)
residuals <- residuals.gimme(fit, lag = 5)
 }

Run the code above in your browser using DataLab