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

Description Usage Arguments Value Note See Also Examples

View source: R/dlsem.r

Description

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

Usage

1
drawSample(x, n)

Arguments

x

An object of class dlsem.

n

The sample size (temporal horizon).

Value

An object of class data.frame.

Note

Sampling is conditioned to the most recent observed value of all the variables.

For variables subdued to logarithmic transformation and/or differencing, the sampled values are in logarithmic scale and/or after differencing, as well.

If a group factor was specified for the model, a sample of size n is drawn for each group.

See Also

dlsem.

Examples

1
2
3
4
5
6
7
8
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)

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