constant function

Constant specification model

Constant specification model

All specification models can be used as parameter in estimate.functional. Specification models are used to denote the quantile or expectile level (depending on the identification function). The constant specification model returns the parameter theta irrespective of the state variable. If theta is not in the unit interval, the constant specification model returns 0 or 1 (depending on which is closer).

constant(stateVariable, theta, ...)

Arguments

  • stateVariable: state variable
  • theta: parameter
  • ...: ...

Returns

numeric level

Examples

# the returned level does not depend on the state variable constant(0,.5) constant(1,.5) # if theta is not in the unit interval, the constant specification model forces it to be so constant(0, 2) constant(0, -1)

See Also

Other specification models: logistic_linear, probit_break, probit_linear, probit_spline2, probit_spline3

  • Maintainer: Patrick Schmidt
  • License: CC0
  • Last published: 2019-02-22

Useful links