Learn R Programming

dlsem (version 2.4.6)

auto.lagPlot: Automated plot of lag shapes

Description

All the single-edge pathwise causal lag shapes are saved as pdf files.

Usage

auto.lagPlot(x, cumul = FALSE, conf = 0.95, plotDir = NULL)

Arguments

x

An object of class dlsem.

cumul

Logical. If TRUE, cumulative causal effects are displayed. Default is FALSE.

conf

The confidence level for each plot. Default is 0.95.

plotDir

The directory where to save the plots. If NULL (the default), plots will be saved in the current working directory.

See Also

dlsem; lagPlot.

Examples

Run this code
# NOT RUN {
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)
## NOT RUN:
# auto.lagPlot(indus.mod,plotDir=getwd())
# }

Run the code above in your browser using DataLab