Automated model code
Given a set of variable names, a model code including all the possible edges is built.
autoCode(var.names, lag.type = "ecq")
var.names
: A vector containing the names of the variables, which must be at least of length 2.lag.type
: The type of lag shape, which will be applied to all variables and must be one among 'ecq', 'qd', 'ld', 'gam' and 'none'. Default is 'ecq'.A list of formulas to be passed as argument model.code
in dlsem()
.
dlsem .
autoCode(c("Job","Consum","Pollution"),lag.type="ecq")
Useful links