cesBoundaryModels: Fits CES boundary models

Description Usage Arguments Value Examples

View source: R/cesBoundaryModels.R

Description

The boundary models are given in Table 2 of Heun, et al "An Empirical Investigation of the Role of Energy in Economic Growth"

Usage

1
cesBoundaryModels(formula, data, nest, method = "nlm", subset = TRUE)

Arguments

formula

a CES formula in the form y ~ a + b + c + d + time

data

historical time series data

nest

a permutation of the integers 1 to the number of factors describing how to nest and permute the variables in the formula.

Value

a list of boundary models.

Examples

1
2
3
4
5
if (require(EconData) & require(dplyr)) {
  cesBoundaryModels(iGDP ~ iK + iL + iQp + iYear, data=Calvin %>% filter(Country=="US"), nest=c(1,2,3))
  cesBoundaryModels(iGDP ~ iK + iL + iQp + iYear, data=Calvin %>% filter(Country=="US"), nest=c(2,3,1))
  cesBoundaryModels(iGDP ~ iK + iL + iYear, data=Calvin %>% filter(Country=="US"), nest=c(1,2))
  }

EconModels/MacroGrowth documentation built on Dec. 17, 2019, 10:41 p.m.