Learn R Programming

dlsem (version 2.4.6)

drawSample: Sampling from a distributed-lag linear structural equation model

Description

A future sample from a distributed-lag linear structural equation model is drawn.

Usage

drawSample(x, n)

Arguments

x

An object of class dlsem.

n

The sample size (temporal horizon).

Value

An object of class data.frame.

See Also

dlsem.

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",time="Year",exogenous=c("Population","GDP"),
  data=industry,log=TRUE)
drawSample(indus.mod,10)
# }

Run the code above in your browser using DataLab