Description Usage Arguments Note See Also Examples
Several different types of plot for diagnostics of the residuals in a distributed-lag structural equation model are displayed.
1 | residualPlot(x, type = "fr")
|
x |
An object of class |
type |
A character string indicating the type of plot, which should be one among 'fr' (fitted vs. residuals plot, the default), 'qq' (quantile-quantile plot of the residuals), 'ts' (time series plot of the residuals), 'ac' (auto-correlation plot of the residuals). |
If type
is equal to 'ts' or 'ac' and a group factor was specified for x
, the results are displayed as minimum, 1st quartile, median, 3rd quartile and maximum by group.
dlsem.
1 2 3 4 5 6 7 8 9 10 11 | data(industry)
indus.code <- list(
Consum~ecq(Job,0,5),
Pollution~ecq(Job,1,8)+ecq(Consum,1,7)
)
indus.mod <- dlsem(indus.code,group="Region",exogenous=c("Population","GDP"),data=industry,
log=TRUE)
residualPlot(indus.mod,type="fr")
residualPlot(indus.mod,type="qq")
residualPlot(indus.mod,type="ts")
residualPlot(indus.mod,type="ac")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.