Learn R Programming

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

Directional (version 3.4)

Directional Statistics

Description

A collection of functions for directional 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).

Copy Link

Version

Install

install.packages('Directional')

Monthly Downloads

935

Version

3.4

License

GPL-2

Maintainer

Michail Tsagris

Last Published

November 12th, 2018

Functions in Directional (3.4)

Rotation axis and angle of rotation given a rotation matrix

Rotation axis and angle of rotation given a rotation matrix
Summary statistics for circular data

Summary statistics for circular data
Circular-linear correlation

Circular-linear correlation
Hypothesis test for IAG distribution over the ESAG distribution

Hypothesis test for IAG distribution over the ESAG distribution
Inverse of the Euclidean transformation

Inverse of the Euclidean transformation
Rotation matrix on SO(3) from three Euler angles

Construct a rotation matrix on SO(3) from the Euler angles.
Random values generation from the ESAG distribution

Random values generation from the ESAG distribution
MLE of the angular central Gaussian distribution

MLE of the angular central Gaussian 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
Prediction in discriminant analysis based on ESAG distribution

Prediction of a new observation using discriminant analysis based on ESAGdistribution
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
k-NN algorithm using the arc cosinus distance

k-NN algorithm using the arc cosinus distance
Tuning of the k-NN algorithm using the arc cosinus distance

k-NN algorithm using the arc cosinus distance. Tuning the k neigbours
Simulation of random values from a Bingham distribution

Simulating from a Bingham distribution
Contour plot of the Kent distribution without any data

Contour plot of the Kent distribution without any 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.
Probability density function of the von Mises-Fisher distribution

Probability density function of the von Mises-Fisher distribution
Euclidean transformation

Euclidean transformation
MLE of the generalised von Mises distribution

MLE of the geometrically generalised von Mises distribution
Simulation from a Matrix Fisher distribution on SO(3)

Simulation from a Matrix Fisher distribution on SO(3)
Simulation of random values from a mixture of von Mises-Fisher distributions

Random values simulation from a mixture of von Mises-Fisher distributions
Goodness of fit test for grouped data

Goodness of fit test for grouped data
Saddlepoint approximations of the Fisher-Bingham distributions

Saddlepoint approximations of the Fisher-Bingham distributions
Inverse of Lambert's equal area projection

Inverse of Lambert's equal area projection
Generate random folds for cross-validation

Generate random folds for cross-validation
Interactive 3D plot of spherical data

Interactive 3D plot of spherical data
Summary statistics for grouped circular data

Summary statistics for grouped circular data
Contour plot of the Kent distribution for some data

Contour plot of the Kent distribution for some data
Density of the spherical Kent distribution

Density of the spherical Kent distribution
Uniformity test for circular data

Uniformity tests for circular data.
Lambert's equal area projection

Lambert's equal area projection
MLE of some circular distributions

MLE of some circular distributions
Converting a rotation matrix on SO(3) to an unsigned unit quaternion

Converting a rotation matrix on SO(3) to an unsigned unit quaternion
Rayleigh's test of uniformity

Rayleigh's test of uniformity
Converting an unsigned unit quaternion to rotation matrix on SO(3)

Converting an unsigned unit quaternion to rotation matrix on SO(3)
Rotation matrix to rotate a spherical vector along the direction of another

Rotation matrix to rotate a spherical vector along the direction of another
Contour plots of the von Mises-Fisher distribution

Contour plots of the von Mises-Fisher distribution on the sphere
Angular central Gaussian random values simulation

Angular central Gaussian random values simulation
Rotation matrix from a rotation axis and angle of rotation

Rotation matrix from a rotation axis and angle of rotation
Unit vector(s) with a given angle

Unit vector(s) with a given angle
Simulation from a Bingham distribution using any symmetric matrix A

Simulation from a Bingham distribution using any symmetric matrix A
Random sample of matrices in SO(p)

Random sample of matrices in SO(p)
Check visually whether matrix Fisher samples is correctly generated or not

Check visually whether matrix Fisher samples is correctly generated or not.
Simulation of random values from a von Mises-Fisher distribution

Random values simulation from a von Mises-Fisher distribution
von Mises-Fisher kernel density estimation for (hyper-)spherical data

Kernel density estimation for (hyper-)spherical data using a von Mises-Fisher 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
Tuning of the bandwidth parameter in the von Mises kernel

Tuning of the bandwidth parameter in the von Mises kernel for circular data
MLE of the Wood bimodal distribution on the sphere

MLe of the Wood bimodal distribution on the sphere
Euler angles from a rotation matrix on SO(3)

Compute the Euler angles from a rotation matrix on SO(3).
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
Circular or angular regression

Circular or angular regression
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
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
Circurlar correlations between two circular variables

Circurlar correlations between two circular variables
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
Anova for circular data

Analysis of variance for circular data
Conversion of cosines to azimuth and plunge

Conversion of cosines to azimuth and plunge
MLE of the spherical projected normal distribution

MLE of the spherical projected normal distribution
k-NN regression

k-NN regression with Euclidean or (hyper-)spherical response and or predictor variables
Tuning of the k-NN regression

Tuning of the k-NN regression with Euclidean or (hyper-)spherical response and or predictor variables
Spherical and hyperspherical median

Fast calculation of the spherical and hyperspherical median
Mixtures of Von Mises-Fisher distributions

Mixtures of Von Mises-Fisher distributions
Density of the ESAG distribution

Density of the ESAG distribution
MLE of the ESAG distribution

MLE of the ESAG distribution
Spherical-spherical regression

Spherical-Spherical regression
Habeck's rotation matrix generation

Generation of three-dimensional random rotations using Habeck's algorithm.
Test for equality of concentration parameters for spherical data

Test for equality of concentration parameters for spherical data
Anova for (hyper-)spherical data

Analysis of variance for (hyper-)spherical data
Logarithm of the Kent distribution normalizing constant

Logarithm of the Kent distribution normalizing constant
Prediction in discriminant analysis based on von Mises-Fisher distribution

Prediction of a new observation using discriminant analysis based on von Mises-Fisher distribution
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
Mle of the Matrix Fisher distribution on SO(3)

Mle of the Matrix Fisher distribution on SO(3)
MLE of the Kent distribution

MLe of the Kent distribution
Test for a given mean direction

Test for a given mean direction
Simulation of random values from a spherical Fisher-Bingham distribution

Simulation of random values from a spherical Fisher-Bingham distribution
Simulation of random values from a spherical Kent distribution

Simulation of random values from a spherical Kent distribution
Random values simulation from a von Mises distribution

Random values simulation from a von Mises distribution
Spherical-spherical correlation

Spherical-spherical correlation
von Mises kernel density estimation

Kernel density estimation of circular data with a von Mises kernel
MLE of the von Mises-Fisher distribution

MLE of von Mises-Fisher distribution
Directional-package

This is an R package that provides methods for the statistical analysis of Directional data.