NPCirc-package: Nonparametric circular methods.

NPCirc-packageR Documentation

Nonparametric circular methods.

Description

Nonparametric smoothing methods for density and regression estimation involving circular data, including methods for estimating circular densities and mean regression functions, described in Oliveira et al. (2014), testing proposals for circular mean regression described in Alonso-Pena et al. (2021), estimation of conditional characteristics (Alonso-Pena et al. 2022a,2022b) and estimation of conditional modes (Alonso-Pena and Crujeiras, 2022).

Details

Package: NPCirc
Type: Package
Version: 4.0.1
Date: 2021-07-21
License: GPL-2
LazyLoad: yes

This package incorporates the function kern.den.circ which computes the circular kernel density estimator. For choosing the smoothing parameter different functions are available: bw.rt, bw.CV, bw.pi, and bw.boot. For mean regression involving circular variables, the package includes the functions: kern.reg.circ.lin for a circular covariate and linear response; kern.reg.circ.circ for a circular covariate and a circular response; kern.reg.lin.circ for a linear covariate and a circular response. The three functions compute Nadaraya-Watson and Local-Linear smoothers. The functions bw.reg.circ.lin, bw.reg.circ.circ and bw.reg.circ.lin implement cross–validation rules for selecting the smoothing parameter. Functions circsizer.density and circsizer.re- gression provide CircSiZer maps for kernel density estimation and regression estimation, respectively. Functions noeffect.circ.lin, noeffect.circ.circ and noeffect.lin.circ compute the test of no effect to assess the significance of the predictor variable. Additionally, functions ancova.circ.lin, ancova.circ.circ and ancova.lin.circ implement hypothesis testing tools to assess the equality and parallelism of regression curves across different groups of observations.

Function circ.local.lik implements the estimation of different functions of interest (transformations of the mean function) in contexts where the predictor variable is circular and the conditional distribution is a Gaussian, Bernoulli, Poisson or gamma. Function bw.circ.local.lik computes smoothing parameters for the estimation in the previously described cases, allowing for three different rules. Function kern.dpreg.circ implements the joint kernel estimation of the mean and dispersion functions in cases where the predictor is circular and the conditional distribution is a double Poisson, a particular case of the double exponential family. Smoothing parameters in this context can be computed with function bw.joint.dpcirc, using a two-step cross-validation algorithm.

Functions modalreg.circ.circ, modalreg.lin.circ and modalreg.circ.lin implement the estimation of the modal regression multifunction (the conditional local modes) in the three circular regression scenarios. Smoothing parameters for these contexts can by computed by modal cross-validation employin functions bw.modalreg.circ.circ, bw.modalreg.lin.circ and bw.modalreg.circ.lin.

Functions dcircmix and rcircmix compute the density function and generate random samples of a circular distribution or a mixture of circular distributions, allowing for different components such as the circular uniform, von Mises, cardioid, wrapped Cauchy, wrapped normal and wrapped skew-normal. Finally, some data sets are provided. Missing data are allowed. Registries with missing data are simply removed.

For a complete list of functions, use library(help="NPCirc").

Acknowledgements

This work has been supported by Project MTM2008-03010 from the Spanish Ministry of Science; Project and MTM201676969-P from the AEI co-funded by the European Regional Development Fund (ERDF), the Competitive Reference Groups 2017-2020 (ED431C 2017/38) from the Xunta de Galicia through the ERDF; and Innovation IAP network (Developing crucial Statistical methods for Understanding major complex Dynamic Systems in natural, biomedical and social sciences (StUDyS)) from Belgian Science Policy. Work of Maria Alonso-Pena was supported by grant ED481A-2019/139 from Xunta de Galicia. Work of Jose Ameijeiras-Alonso was supported by the FWO research project G.0826.15N (Flemish Science Foundation); and GOA/12/014 project (Research Fund KU Leuven). The authors want to acknowledge Prof. Arthur Pewsey for facilitating data examples and for his comments.

Author(s)

Maria Oliveira, Maria Alonso-Pena, Jose Ameijeiras-Alonso, Rosa M. Crujeiras, Alberto Rodriguez–Casal and Irene Gijbels.

Maintainer: Maria Alonso-Pena mariaalonso.pena@usc.es

References

Oliveira, M., Crujeiras, R.M. and Rodriguez–Casal, A. (2012) A plug–in rule for bandwidth selection in circular density. Computational Statistics and Data Analysis, 56, 3898–3908.

Oliveira, M., Crujeiras R.M. and Rodriguez–Casal, A. (2013) Nonparametric circular methods for exploring environmental data. Environmental and Ecological Statistics, 20, 1–17.

Oliveira, M., Crujeiras, R.M. and Rodriguez–Casal (2014) CircSiZer: an exploratory tool for circular data. Environmental and Ecological Statistics, 21, 143–159.

Oliveira, M., Crujeiras R.M. and Rodriguez–Casal, A. (2014) NPCirc: an R package for nonparametric circular methods. Journal of Statistical Software, 61(9), 1–26. https://www.jstatsoft.org/v61/i09/

Alonso-Pena, M., Ameijeiras-Alonso, J. and Crujeiras, R.M. (2021) Nonparametric tests for circular regression. Journal of Statistical Computation and Simulation, 91(3), 477–500.

Alonso-Pena, M., Gijbels, I. and Crujeiras, R.M. (2022a). A general framework for circular local likelihood regression. Under review.

Alonso-Pena, M., Gijbels, I. and Crujeiras, R.M. (2022b). Flexible joint modeling of mean and dispersion for the directional tuning of neuronal spike counts. Under review.

Alonso-Pena, M. and Crujeiras, R. M. (2022). Analizing animal escape data with circular nonparametric multimodal regression. Annals of Applied Statistics. (To appear).


NPCirc documentation built on Nov. 10, 2022, 5:48 p.m.