residualPlot function

Plot for diagnostics of the residuals in a distributed-lag structural equation model.

Plot for diagnostics of the residuals in a distributed-lag structural equation model.

Several different types of plot for diagnostics of the residuals in a distributed-lag structural equation model are displayed.

residualPlot(x, type = "fr")

Arguments

  • x: An object of class dlsem.
  • 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).

Note

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.

See Also

dlsem .

Examples

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")
  • Maintainer: Alessandro Magrini
  • License: GPL-2
  • Last published: 2020-04-16

Useful links