View source: R/residuals.gimme.R
residuals.gimme | R Documentation |
This function calculates the unstandardized and standardized residuals of a fitted gimme model.
residuals.gimme(x, lag)
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. |
List of four lists of data frames:
List of the unstandardized residuals per subject.
List of the standardized residuals per subject.
List of the results of the Box-Pierce test for each subject's residuals.
List of the results of the Ljung-Box test for each subject's residuals.
Sebastian Castro-Alvarez
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.