Sampling from a distributed-lag linear structural equation model
Sampling from a distributed-lag linear structural equation model
A future sample from a distributed-lag linear structural equation model is drawn.
drawSample(x, n)
Arguments
x: An object of class dlsem.
n: The sample size (temporal horizon).
Returns
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.