residuals.gimme {gimme} | R Documentation |
GIMME Residuals.
Description
This function calculates the unstandardized and standardized residuals of a fitted gimme model.
Usage
residuals.gimme(x, lag)
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. |
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.
Author(s)
Sebastian Castro-Alvarez
Examples
## Not run:
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)
## End(Not run)
[Package gimme version 0.9.1 Index]