title: How to estimate the area of 95% contour of a kde object from ks R package
body: <p>I'm trying to estimate the area of the 95% contour of a kde object from the ks package in R.</p>
  
  <p>If I use the example data set from the ks package, I would create the kernel object as follow:</p>
  
  <pre><code>library(ks)
  data(unicef)
  H.scv &lt;- Hscv(x=unicef)
  fhat &lt;- kde(x=unicef, H=H.scv)
  </code></pre>
  
  <p>I can easily plot the 25, 50, 75% contour using the plot function:</p>
  
  <pre><code>plot(fhat)
  </code></pre>
  
  <p>But I want to estimate the area within the contour. </p>
  
  <p>I saw a similar question <a href="https://stackoverflow.com/q/22519749/2870670">here</a>, but the answer proposed does not solve the problem.</p>
  
  <p>In my real application, my dataset is a time series of coordinates of an animal and I want to measure the home range size of this animal using a bivariate normal kernel. I'm using ks package because it allows to estimate the bandwith of a kernel distribution with methods such as plug-in and smoothed cross-validation. </p>
  
  <p>Any help would be really appreciated!</p>