[R-sig-Geo] How to get each bandwidth values on observation points using adaptive kernel in spgwr ?
Roger Bivand
Roger.Bivand at nhh.no
Mon Jul 16 15:29:19 CEST 2012
On Mon, 16 Jul 2012, Barry Rowlingson wrote:
> On Mon, Jul 16, 2012 at 10:36 AM, Lilis Husna <lily_franknich at yahoo.com> wrote:
>> when i run
>>
>>
>> res <- gw.adapt(cbind(columbus$x, columbus$y), cbind(columbus$x,
>> columbus$y), quant=0.5)
>>
>>
>> there is error message
>>
>> Error: could not find function "gw.adapt"
>>
>>
>> why did it happen?
>
> Who told you about gw.adapt?
>
> It seems to now be not exported from the spgwr package, but the help
> page is still there (Roger: is that a bug? Either you've missed it out
> of the exports or you've left in the .Rd file!).
I hadn't intended to export it since I cannot see that users need to use
it directly, but forgot to remove the help file. I've committed gw.adapt
in the NAMESPACE to R-Forge, and it will be exposed (since a user wants
it) in the next release, or installing from R-Forge directly. For the
currently released package, follow Barry's advice and use the spgwr:::
prefix.
Roger
>
> If you want to use it you can use the triple-colon notation to get an
> unexported function from a package:
>
> res = spgwr:::gw.adapt(cbind(columbus$x,columbus$y),cbind(columbus$x,columbus$y),quant=0.5)
>
> Roger may have removed it for a good reason, and possibly put the
> functionality into another function. But the quick fix would be the
> triple-colon trick.
>
> It's also useful if you give package versions with your questions -
> here's mine:
>
>> packageDescription("spgwr")$Version
> [1] "0.6-14"
>
> Barry
>
--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
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