residualPlot: Plot for diagnostics of the residuals in a distributed-lag...

Description Usage Arguments Note See Also Examples

View source: R/dlsem.r

Description

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

Usage

1
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

 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")

dlsem documentation built on April 17, 2020, 1:14 a.m.