Evaluate Expressions Within the Environment of a Hedonic Function

Share:

Description

This function evaluates R expressions within the environment of an object of class "hedonic.function".

Usage

1
analyse.in.hf(expr, hf)

Arguments

expr

the expression to be evaluated

hf

an object of class "hedonic.function"

Details

Hedonic functions are often predictions from a regression model. This function allows to easily access the elements in the environment of the hedonic function for further analysis.

Author(s)

Michael Beer r-hepi@michael.beer.name

See Also

hedonic.function-class, hedonic.function

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data(boston, package="spdep")

hf0 <- build.hf.lm(
    learndata = boston.c, 
    full.formula = log(MEDV) ~ CRIM + ZN + INDUS + CHAS + 
      I(NOX^2) + I(RM^2) + AGE + log(DIS) + log(RAD) + TAX + 
      PTRATIO + B + log(LSTAT), 
    backtrans = exp, 
    rm.infl =  FALSE, 
    description = NULL, 
    return.row.labels = FALSE, 
    allow.variable.selection = FALSE)

analyse.in.hf(ls(), hf0)
analyse.in.hf(summary(learndata), hf0)
analyse.in.hf(summary(hf.model), hf0)