Learn R Programming

HDiR (version 1.1.3)

Directional Highest Density Regions

Description

We provide an R tool for computation and nonparametric plug-in estimation of Highest Density Regions (HDRs) and general level sets in the directional setting. Concretely, circular and spherical HDRs can be reconstructed from a data sample following Saavedra-Nieves and Crujeiras (2021) . This library also contains two real datasets in the circular and spherical settings. The first one concerns a problem from animal orientation studies and the second one is related to earthquakes occurrences.

Copy Link

Version

Install

install.packages('HDiR')

Monthly Downloads

227

Version

1.1.3

License

GPL-2

Maintainer

Paula Saavedra-Nieves

Last Published

November 16th, 2022

Functions in HDiR (1.1.3)

points10

Coordinates of mesh vertices for spherical numerical integration
trapezoidal.rule

Trapezoidal rule for numerical integration over a threshold
sphere.scatterplot

Spherical scatterplot for plug-in HDRs
sphere.plugin.hdr

Spherical plug-in estimation of HDRs
sphere.boot.sample

Bootstrap samples from a spherical kernel estimator
sphere.distances

Euclidean and Hausdorff distances between two sets of points on the unit sphere
sphere.integration

Numerical integration on the unit sphere
sphere.hdr

Computation of HDRs for a spherical density and of general level sets for spherical real-valued functions
vmf.kerncontour2

Von Mises-Fisher kernel density estimator with numerical smoothing parameter
circ.scatterplot

Circular scatterplot for plug-in HDRs
cells10

Indices of mesh cells for spherical numerical integration
dspheremix

Density functions for mixtures of spherical von Mises-Fisher
circ.boot.bw

Circular smoothing parameter for HDRs estimation
circ.plugin.hdr

Circular plug-in estimation of HDRs and confidence regions
circ.distances

Euclidean and Hausdorff distances between two sets of points on the unit circle
circ.hdr

Computation of HDRs for a circular density and of general level sets for circular real-valued functions
cells20

Indices of mesh cells for spherical numerical integration
cells40

Indices of mesh cells for spherical numerical integration
circ.boot.sample

Bootstrap samples from a circular kernel estimator
rspheremix

Random generation functions for mixtures of spherical von Mises-Fisher
sandhoppers

Behavioral plasticity of Talitrus saltator and Talorchestia brito
runif_on_sphere

Random generation of a sample on a d-dimensional sphere of radius r
points20

Coordinates of mesh vertices for spherical numerical integration
earthquakes

Earthquakes on Earth between October 2004 and April 2020
points40

Coordinates of mesh vertices for spherical numerical integration
find.circ.hdr

Calculation of the boundaries of HDRs in the circular setting
is.wholenumber

Checking if a value is integer
sphere.boot.bw

Spherical smoothing parameter for HDRs estimation