linexModel: Fit LINEX models

Description Usage Arguments Examples

View source: R/Fitting.R

Description

Fit LINEX models

Usage

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

Arguments

formula

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

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.

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.

Examples

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

EconModels/MacroGrowth documentation built on Sept. 26, 2018, 6:59 a.m.