Displaying 1 result from an estimated 1 matches for "housedata".
Did you mean:
hostdata
2009 Apr 15
0
confusion over "names" of lm.influence()$hat
...I am making?
> obs <- 451 # this is the location/observation in the data for which
we are currently running the regression, for example
> require(fields)
> # calculate the distance all other observations are from
this observation
> Di=t(rdist.earth(cbind(housedata$longitude[obs],housedata
$latitude[obs]),
+ cbind(housedata$longitude,housedata
$latitude) ))
>
> ##########################
> b=.3 # this is the relevant distance threshold
>
> housedata$w <- 0 # gen...