autoCode: Automated model code

Description Usage Arguments Value See Also Examples

View source: R/dlsem.r

Description

Given a set of variable names, a model code including all the possible edges is built.

Usage

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

Value

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

See Also

dlsem.

Examples

1
autoCode(c("Job","Consum","Pollution"),lag.type="ecq")

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