[R] Export kde object as shapefile

David Winsemius dwinsemius at comcast.net
Fri Nov 27 00:56:17 CET 2009


On Nov 26, 2009, at 2:25 PM, T.D.Rudolph wrote:

>
> <Can you explain what you mean by "spatial area under the space" or
> <what it is for which you think there is a well defined area in a
> <ks:::kde object?
>
> My knowledge is not extensive in this area but I am aware that kernel
> methods can be used to estimate home range size.  The function  
> kernel.area
> in the adehabitat package, for example, produces a spatial area I  
> interpret
> as being equivalent to estimated home range size using one of two  
> possible
> smoothing parameters.  I would like to use the plug-in method  
> because I am
> convinced it will serve me best, but the ks package doesn't have a  
> simple
> option like "kde.area" that produces what I'm looking for.
>
> < Some example data would, as always, be welcome.
>
> Attached is an example subset of my data.  I've only gotten so far  
> as to
> produce the kde object and explore potential solutions.
>
> tmp.Hpi<-Hpi(x=temp[,2:3])
> tmp.kde<-kde(x=temp[,2:3], H=tmp.Hpi)

The situation that I see (after looking at the documentation for  
adehabit) is that for some as yet unarticulated reason, you have  
decided that the methods used in prior publications in your domain are  
not the best and you are going to invent new ones, but you are as yet  
unable to provided a detailed specification or offer an implementation  
of the methods. Furthermore, you are unable even to manipulate the  
objects you have thus far created in service toward this effort.

I am being somewhat harsh in my assessment because it seems that you  
really need is a statistical collaborator with whom you can bang ideas  
together and arrive, first at a more detailed rationale and plan, and  
then a forward effort using your data and his programming expertise to  
demonstrate the superiority of your method. That would seem to be most  
reasonably a joint effort with joint authorship as an outcome.

-- 
David.


>
> Tyler
>
> http://old.nabble.com/file/p26533942/temp temp
>
>
> David Winsemius wrote:
>>
>>
>> On Nov 26, 2009, at 12:40 PM, T.D.Rudolph wrote:
>>
>>>
>>> I am trying to estimate home range size using the plug-in method
>>> with kernel
>>> density estimation in the kernel smoothing (ks) package.  Unless
>>> there is
>>> another way I am not familiar with, in order to calculate spatial
>>> area under
>>> the space I need to convert my kde () object into a spatial object
>>> somehow
>>> in order to calculate its spatial area.  Could someone demonstrate
>>> how this
>>> might be done?
>>
>> Can you explain what you mean by "spatial area under the space" or
>> what it is for which you think there is a well defined area in a
>> ks:::kde object? (Some example data would, as always, be welcome.)
>>
>>
>>> -- 
>>> View this message in context:
>>> http://old.nabble.com/Export-kde-object-as-shapefile-tp26532782p26532782.html
>>> Sent from the R help mailing list archive at Nabble.com.
>>>
>>> ______________________________________________
>>> R-help at r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-help
>>> PLEASE do read the posting guide
>>> http://www.R-project.org/posting-guide.html
>>> and provide commented, minimal, self-contained, reproducible code.
>>
>> David Winsemius, MD
>> Heritage Laboratories
>> West Hartford, CT
>>
>> ______________________________________________
>> R-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-help
>> PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
>
> -- 
> View this message in context: http://old.nabble.com/Export-kde-object-as-shapefile-tp26532782p26533942.html
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

David Winsemius, MD
Heritage Laboratories
West Hartford, CT




More information about the R-help mailing list