[R-sig-Geo] Help Needed on gwr function

Roger Bivand Roger.Bivand at nhh.no
Tue Jan 13 20:16:47 CET 2009


On Tue, 13 Jan 2009, Myers, Joshua wrote:

> I am using R 2.8.0 and Windows XP Professional, and the latest version
> of spgwr package and the latest versions of spgwr's dependent packages.
>
> In using the gwr function inside of spgwr, I can run it fine until I
> input fit points.  The x,y fit points matrix I am entering is in the
> same form as the coordinates argument.  I get the following error
> immediately:  Error: object "rss" not found.  I have spent some time
> looking into the gwr function and what the object rss is, but I can't
> figure out why this error message comes up and what I am doing wrong.
> Can anyone help?
>
> -Josh Myers
>
>
>
> The code, if it helps, is below.
>

The code always helps, sessionInfo() would too, but I guess that this is 
my fault - I noticed the bug in October, but haven't released since then. 
If you're in a hurry, I can roll up a Windows binary, otherwise 0.5-5 
should get to CRAN soon.

Roger

> house1.sel<-gwr.sel(house$consideration ~ house$total_living_area +
> house$waterfront + house$grade_recode + house$effective_age +
> house$accepted_acreage + house$major_infl_amt, data=house, housecoords,
> adapt=TRUE);
>
> house1.gwr<-gwr(house$consideration ~ house$total_living_area +
> house$waterfront + house$grade_recode + house$effective_age +
> house$accepted_acreage + house$major_infl_amt, data=house, housecoords,
> adapt=house1.sel, fit.points=xys, se.fit=TRUE);
>
>
> 	[[alternative HTML version deleted]]
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no




More information about the R-sig-Geo mailing list