cd3Model: Fit Cobb-Douglas models with 3 Factors

Description Usage Arguments Details Examples

View source: R/Fitting.R

Description

Fit Cobb-Douglas models with 3 Factors

Usage

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

Arguments

formula

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

data

a data frame in which formala is evaluated

response

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

x1

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

x2

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

x3

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

time

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

constrained

a logical indicated whether the coefficents are constrained. See details

correlation

an optional nlme::corStruct object describing the within-group correlation structure. See the documentation of nlme::corClasses for a description of the available nlme::corStruct classes. If a grouping variable is to be used, it must be specified in the form argument to the nlme::corStruct constructor. Defaults to NULL, corresponding to uncorrelated errors.

...

additional arguments; currently unused.

Details

More about contranints TBA.

Examples

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

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