cdModel: Fit Cobb-Douglas models

Description Usage Arguments Value Examples

View source: R/Fitting.R

Description

Fit Cobb-Douglas models

Usage

1
2
cdModel(formula, data, response, x1, x2, x3, time, constrained = TRUE,
  save.data = TRUE, correlation = NULL, ...)

Arguments

data

a data frame in which formula is evaluated

response

instead of specifying a formula, expressions for the components can be specified individually.

x1

instead of specifying a formula, expressions for the components can be specified individually.

x2

instead of specifying a formula, expressions for the components can be specified individually.

x3

instead of specifying a formula, expressions for the components can be specified individually.

time

instead of specifying a formula, expressions for the components can be specified individually.

constrained

a logical indicating whether the parameters should be constrained in the fitting process.

formala

a formula of the form response ~ x1 + x2 + time or response ~ x1 + x2 + x3 + time

Value

a CDEmodel object, which is an lm object with some additioanl attributes.

Examples

1
2
3
data(EconUK)
cdModel(response = "iGDP", x1 = "iK", x2 = "iL", time = "iYear", data = EconUK)
cdModel(iGDP ~ iK + iL + iYear, data = EconUK)

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