autoCode function

Automated model code

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")

Arguments

  • 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'.

Returns

A list of formulas to be passed as argument model.code in dlsem().

See Also

dlsem .

Examples

autoCode(c("Job","Consum","Pollution"),lag.type="ecq")
  • Maintainer: Alessandro Magrini
  • License: GPL-2
  • Last published: 2020-04-16

Useful links