Learn R Programming

⚠️There's a newer version (7.1) of this package.Take me there.

Directional (version 4.8)

A Collection of R Functions for Directional Data Analysis

Description

A collection of functions for directional data (including massive, with millions of observations, data) analysis. Hypothesis testing, discriminant and regression analysis, MLE of distributions and more are included. The standard textbook for such data is the "Directional Statistics" by Mardia, K. V. and Jupp, P. E. (2000). Other references include a) Phillip J. Paine, Simon P. Preston Michail Tsagris and Andrew T. A. Wood (2018). An elliptically symmetric angular Gaussian distribution. Statistics and Computing 28(3): 689-697. . b) Tsagris M. and Alenazi A. (2019). Comparison of discriminant analysis methods on the sphere. Communications in Statistics: Case Studies, Data Analysis and Applications 5(4):467--491. . c) P. J. Paine, S. P. Preston, M. Tsagris and Andrew T. A. Wood (2020). Spherical regression models with general covariates and anisotropic errors. Statistics and Computing 30(1): 153--165. .

Copy Link

Version

Install

install.packages('Directional')

Monthly Downloads

735

Version

4.8

License

GPL-2

Maintainer

Michail Tsagris

Last Published

February 16th, 2021

Functions in Directional (4.8)

Test of equality of the concentration parameters for circular data

A test for testing the equality of the concentration parameter among g samples, where g >= 2 for ciruclar data
MLE of the ESAG distribution

MLE of the ESAG distribution
Directional-package

This is an R package that provides methods for the statistical analysis of directional data, including massive (very large scale) directional data.
Prediction in discriminant analysis based on ESAG distribution

Prediction of a new observation using discriminant analysis based on ESAGdistribution
Summary statistics for grouped circular data

Summary statistics for grouped circular data
Habeck's rotation matrix generation

Generation of three-dimensional random rotations using Habeck's algorithm.
Cross validation for estimating the classification rate

Cross validation for estimating the classification rate
Hypothesis test for von Mises-Fisher distribution over Kent distribution

Hypothesis test for von Mises-Fisher distribution over Kent distribution
Conversion of cosines to azimuth and plunge

Conversion of cosines to azimuth and plunge
Density of some (hyper-)spherical distributions

Density of some (hyper-)spherical distributions
Generate random folds for cross-validation

Generate random folds for cross-validation
Permutation based 2-sample mean test for (hyper-)spherical data

Permutation based 2-sample mean test for (hyper-)spherical data
Rayleigh's test of uniformity

Rayleigh's test of uniformity
Inverse of Lambert's equal area projection

Inverse of Lambert's equal area projection
Anova for circular data

Analysis of variance for circular data
Simulation from a Bingham distribution using any symmetric matrix A

Simulation from a Bingham distribution using any symmetric matrix A
Goodness of fit test for grouped data

Goodness of fit test for grouped data
Column-wise MLE of the angular Gaussian and the von Mises Fisher distributions

Column-wise MLE of the angular Gaussian and the von Mises Fisher distributions
k-NN algorithm using the arc cosinus distance

k-NN algorithm using the arc cosinus distance
Circular correlations between one and many circular variables

Circular correlations between two circular variables
Density of the spherical Kent and ESAG distributions

Density of the spherical Kent and ESAG distributions
Circular-linear correlation

Circular-linear correlation
Rotation matrix on SO(3) from three Euler angles

Construct a rotation matrix on SO(3) from the Euler angles.
Inverse of the Euclidean transformation

Inverse of the Euclidean transformation
Tuning of the k-NN algorithm using the arc cosinus distance

k-NN algorithm using the arc cosinus distance. Tuning the k neigbours
Converting a rotation matrix on SO(3) to an unsigned unit quaternion

Converting a rotation matrix on SO(3) to an unsigned unit quaternion
Summary statistics for circular data

Summary statistics for circular data
Rotation matrix to rotate a spherical vector along the direction of another

Rotation matrix to rotate a spherical vector along the direction of another
Lambert's equal area projection

Lambert's equal area projection
Interactive 3D plot of spherical data

Interactive 3D plot of spherical data
Uniformity test for circular data

Uniformity tests for circular data.
Contour plot of a mixture of von Mises-Fisher distributions model

Contour plot of a mixture of von Mises-Fisher distributions model for spherical data only.
MLE of (hyper-)spherical distributions

MLE of (hyper-)spherical distributions
Forward Backward Early Dropping selection for circular data using the SPML regression

Forward Backward Early Dropping selection for circular data using the SPML regression
Spherical and hyperspherical median

Fast calculation of the spherical and hyperspherical median
Bootstrap 2-sample mean test for circular data

Bootstrap 2-sample mean test for circular data
Permutation based 2-sample mean test for circular data

Permutation based 2-sample mean test for circular data
Contour plots of the von Mises-Fisher distribution

Contour plots of the von Mises-Fisher distribution on the sphere
Transform unit vectors to angular data

Transform unit vectors to angular data
Density of some circular distributions

Density of some circular distributions
von Mises-Fisher kernel density estimation for (hyper-)spherical data

Kernel density estimation for (hyper-)spherical data using a von Mises-Fisher kernel
Cross validation in von Mises-Fisher discrminant analysis

Cross validation for estimating the classification rate of a discrminant analysis for directional data assuming a von Mises-Fisher distribution
Cross validation with ESAG discrminant analysis

Cross validation for estimating the classification rate of a discrminant analysis for directional data assuming an ESAG distribution
Euclidean transformation

Euclidean transformation
Simulation of random values from a Bingham distribution

Simulating from a Bingham distribution
Converting an unsigned unit quaternion to rotation matrix on SO(3)

Converting an unsigned unit quaternion to rotation matrix on SO(3)
Logarithm of the Kent distribution normalizing constant

Logarithm of the Kent distribution normalizing constant
MLE of the Wood bimodal distribution on the sphere

MLe of the Wood bimodal distribution on the sphere
Prediction with some naive Bayes classifiers for circular data

Prediction with some naive Bayes classifiers for circular data
Saddlepoint approximations of the Fisher-Bingham distributions

Saddlepoint approximations of the Fisher-Bingham distributions
MLE of the Kent distribution

MLe of the Kent distribution
Anova for (hyper-)spherical data

Analysis of variance for (hyper-)spherical data
Contour plot of the Kent distribution for some data

Contour plot of the Kent distribution for some data
Test for a given mean direction

Test for a given mean direction
Random values generation from the ESAG distribution

Random values generation from the ESAG distribution
MLE of some circular distributions

MLE of some circular distributions
Read a file as a Filebacked Big Matrix

Read a file as a Filebacked Big Matrix
Angular central Gaussian random values simulation

Angular central Gaussian random values simulation
MLE of the Matrix Fisher distribution on SO(3)

MLE of the Matrix Fisher distribution on SO(3)
Bootstrap 2-sample mean test for (hyper-)spherical data

Bootstrap 2-sample mean test for (hyper-)spherical data
Contour plot of the Kent distribution without any data

Contour plot of the Kent distribution without any data
k-NN regression

k-NN regression with Euclidean or (hyper-)spherical response and or predictor variables
Circular or angular regression

Circular or angular regression
Probability density function of the von Mises-Fisher distribution

Probability density function of the von Mises-Fisher distribution
Simulation of random values from a mixture of von Mises-Fisher distributions

Random values simulation from a mixture of von Mises-Fisher distributions
Spherical regression using the projected normal or the von Mises-Fisher distribution

Spherical regression using the projected normal or the von Mises-Fisher distribution
Tuning of the k-NN regression

Tuning of the k-NN regression with Euclidean or (hyper-)spherical response and or predictor variables
MLE of some circular distributions with multiple samples

MLE of some circular distributions with multiple samples
Rotation matrix from a rotation axis and angle of rotation

Rotation matrix from a rotation axis and angle of rotation
Euler angles from a rotation matrix on SO(3)

Compute the Euler angles from a rotation matrix on SO(3).
Many simple circular or angular regressions

Many simple circular or angular regressions
Mixtures of Von Mises-Fisher distributions

Mixtures of Von Mises-Fisher distributions
Simulation from a Matrix Fisher distribution on SO(3)

Simulation from a Matrix Fisher distribution on SO(3)
Tuning of the bandwidth parameter in the von Mises-Fisher kernel

Tuning of the bandwidth parameter in the von Mises-Fisher kernel for (hyper-)spherical data
Random values simulation from some circular distributions

Random values simulation from some circular distributions
A test for testing the equality of the concentration parameters for ciruclar data

A test for testing the equality of the concentration parameter among g samples, where g >= 2 for ciruclar data
Spherical-spherical correlation

Spherical-spherical correlation
Tuning of the bandwidth parameter in the von Mises kernel

Tuning of the bandwidth parameter in the von Mises kernel for circular data
Simulation of random values from a spherical Fisher-Bingham distribution

Simulation of random values from a spherical Fisher-Bingham distribution
Random sample of matrices in SO(p)

Random sample of matrices in SO(p)
Unit vector(s) with a given angle

Unit vector(s) with a given angle
Check visually whether matrix Fisher samples is correctly generated or not

Check visually whether matrix Fisher samples is correctly generated or not.
MLE of the Purkayashta distribution

MLE of the Purkayashta distribution
Simulation of random values from a von Mises-Fisher distribution

Random values simulation from a von Mises-Fisher distribution
Hypothesis test for IAG distribution over the ESAG distribution

Hypothesis test for IAG distribution over the ESAG distribution
Spherical-spherical regression

Spherical-Spherical regression
Test for equality of concentration parameters for spherical data

Test for equality of concentration parameters for spherical data
Simulation of random values from a spherical Kent distribution

Simulation of random values from a spherical Kent distribution
von Mises kernel density estimation

Kernel density estimation of circular data with a von Mises kernel
Contour plot of spherical data using a von Mises-Fisher kernel density estimate

Contour plot of spherical data using a von Mises-Fisher kernel density estimate
Naive Bayes classifiers for circular data

Naive Bayes classifiers for directional data
Prediction in discriminant analysis based on von Mises-Fisher distribution

Prediction of a new observation using discriminant analysis based on von Mises-Fisher distribution
Rotation axis and angle of rotation given a rotation matrix

Rotation axis and angle of rotation given a rotation matrix
Circular correlations between two circular variables

Circular correlations between two circular variables
BIC for the model based clustering using mixtures of von Mises-Fisher distributions

BIC to choose the number of components in a model based clustering using mixtures of von Mises-Fisher distributions
The k-nearest neighbours using the cosinus distance

The k-nearest neighbours using the cosinus distance