Skip to content

Commit

Permalink
Merge pull request #2 from egarpor/1.0.7
Browse files Browse the repository at this point in the history
v1.0.7
  • Loading branch information
egarpor authored Mar 8, 2020
2 parents 8f299f4 + cfc7a40 commit 2887028
Show file tree
Hide file tree
Showing 19 changed files with 105 additions and 71 deletions.
9 changes: 5 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: rotasym
Type: Package
Title: Tests for Rotational Symmetry on the Hypersphere
Version: 1.0-6
Date: 2019-08-26
Version: 1.0.7
Date: 2020-03-08
Authors@R: c(
person(given = "Eduardo", family = "García-Portugués",
role = c("aut", "cre"), email = "edgarcia@est-econ.uc3m.es"),
Expand All @@ -11,7 +11,7 @@ Authors@R: c(
)
Description: Implementation of the tests for rotational symmetry on the
hypersphere proposed in García-Portugués, Paindaveine and Verdebout
(2019) <arXiv:1706.05030>. The package also implements the proposed
(2020) <doi:10.1080/01621459.2019.1665527>. The package also implements the proposed
distributions on the hypersphere, based on the tangent-normal
decomposition, and allows for the replication of the data
application considered in the paper.
Expand All @@ -27,4 +27,5 @@ LinkingTo: Rcpp, RcppArmadillo
URL: https://github.com/egarpor/rotasym
BugReports: https://github.com/egarpor/rotasym
Encoding: UTF-8
RoxygenNote: 6.1.1
RoxygenNote: 7.0.2
Roxygen: list(old_usage = TRUE)
8 changes: 4 additions & 4 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU General Public License
==========================

_Version 3, 29 June 2007_
_Version 3, 29 June 2007_
_Copyright © 2007 Free Software Foundation, Inc. &lt;<http://fsf.org/>&gt;_

Everyone is permitted to copy and distribute verbatim copies of this license
Expand Down Expand Up @@ -552,8 +552,8 @@ to the start of each source file to most effectively state the exclusion of warr
and each file should have at least the “copyright” line and a pointer to
where the full notice is found.

<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2019 Eduardo García-Portugués; Davy Paindaveine; Thomas Verdebout
rotasym: Tests for Rotational Symmetry on the Hypersphere
Copyright (C) 2020 Eduardo García-Portugués; Davy Paindaveine; Thomas Verdebout

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -573,7 +573,7 @@ Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this
when it starts in an interactive mode:

rotasym Copyright (C) 2019 Eduardo García-Portugués; Davy Paindaveine; Thomas Verdebout
rotasym Copyright (C) 2020 Eduardo García-Portugués; Davy Paindaveine; Thomas Verdebout
This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'show c' for details.
Expand Down
5 changes: 3 additions & 2 deletions R/TE.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
#' \code{r_U = \link{r_ACG}}.
#' @author Eduardo García-Portugués, Davy Paindaveine, and Thomas Verdebout.
#' @references
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2019) On optimal tests
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2020) On optimal tests
#' for rotational symmetry against new classes of hyperspherical distributions.
#' \emph{arXiv:1706.05030}. \url{https://arxiv.org/abs/1706.05030}
#' \emph{Journal of the American Statistical Association}, to appear.
#' \url{https://doi.org/10.1007/s11222-017-9790-2}
#' @examples
#' ## Simulation and density evaluation for p = 2
#'
Expand Down
5 changes: 3 additions & 2 deletions R/TM.R
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@
#' \code{r_U = \link{r_vMF}}.
#' @author Eduardo García-Portugués, Davy Paindaveine, and Thomas Verdebout.
#' @references
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2019) On optimal tests
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2020) On optimal tests
#' for rotational symmetry against new classes of hyperspherical distributions.
#' \emph{arXiv:1706.05030}. \url{https://arxiv.org/abs/1706.05030}
#' \emph{Journal of the American Statistical Association}, to appear.
#' \url{https://doi.org/10.1007/s11222-017-9790-2}
#' @examples
#' ## Simulation and density evaluation for p = 2
#'
Expand Down
5 changes: 3 additions & 2 deletions R/cosines-signs.R
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@
#' \code{check_X = TRUE} prevents this from happening.
#' @author Eduardo García-Portugués, Davy Paindaveine, and Thomas Verdebout.
#' @references
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2019) On optimal tests
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2020) On optimal tests
#' for rotational symmetry against new classes of hyperspherical distributions.
#' \emph{arXiv:1706.05030}. \url{https://arxiv.org/abs/1706.05030}
#' \emph{Journal of the American Statistical Association}, to appear.
#' \url{https://doi.org/10.1007/s11222-017-9790-2}
#' @examples
#' # Gamma_theta
#' theta <- c(0, 1)
Expand Down
5 changes: 3 additions & 2 deletions R/estimators.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@
#' use is recommended if the rotationally symmetric data is not unimodal.
#' @author Eduardo García-Portugués, Davy Paindaveine, and Thomas Verdebout.
#' @references
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2019) On optimal tests
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2020) On optimal tests
#' for rotational symmetry against new classes of hyperspherical distributions.
#' \emph{arXiv:1706.05030}. \url{https://arxiv.org/abs/1706.05030}
#' \emph{Journal of the American Statistical Association}, to appear.
#' \url{https://doi.org/10.1007/s11222-017-9790-2}
#' @examples
#' # Sample from a vMF
#' n <- 200
Expand Down
15 changes: 8 additions & 7 deletions R/rotasym-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,18 @@
#' @title \pkg{rotasym} -- Tests for Rotational Symmetry on the Hypersphere
#'
#' @description Implementation of the tests for rotational symmetry on the
#' hypersphere proposed in the paper ``On optimal tests for rotational symmetry
#' against new classes of hyperspherical distribution''. The package
#' implements the proposed distributions on the hypersphere based on the
#' tangent-normal decomposition. It also allows for the replication of the
#' data application considered in the paper.
#' hypersphere proposed in García-Portugués, Paindaveine and Verdebout (2020)
#' <doi:10.1080/01621459.2019.1665527>. The package implements the proposed
#' distributions on the hypersphere based on the tangent-normal decomposition.
#' It also allows for the replication of the data application considered in
#' the paper.
#'
#' @author Eduardo García-Portugués, Davy Paindaveine, and Thomas Verdebout.
#' @references
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2019) On optimal tests
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2020) On optimal tests
#' for rotational symmetry against new classes of hyperspherical distributions.
#' \emph{arXiv:1706.05030}. \url{https://arxiv.org/abs/1706.05030}
#' \emph{Journal of the American Statistical Association}, to appear.
#' \url{https://doi.org/10.1007/s11222-017-9790-2}
#' @docType package
#' @name rotasym-package
#' @import stats Rcpp
Expand Down
5 changes: 3 additions & 2 deletions R/tang-norm.R
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,10 @@
#' numerical accuracy.
#' @author Eduardo García-Portugués, Davy Paindaveine, and Thomas Verdebout.
#' @references
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2019) On optimal tests
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2020) On optimal tests
#' for rotational symmetry against new classes of hyperspherical distributions.
#' \emph{arXiv:1706.05030}. \url{https://arxiv.org/abs/1706.05030}
#' \emph{Journal of the American Statistical Association}, to appear.
#' \url{https://doi.org/10.1007/s11222-017-9790-2}
#' @examples
#' ## Simulation and density evaluation for p = 2
#'
Expand Down
5 changes: 3 additions & 2 deletions R/tests.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,10 @@
#' \emph{all} types of alternatives to rotational symmetry.
#' @author Eduardo García-Portugués, Davy Paindaveine, and Thomas Verdebout.
#' @references
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2019) On optimal tests
#' García-Portugués, E., Paindaveine, D., Verdebout, T. (2020) On optimal tests
#' for rotational symmetry against new classes of hyperspherical distributions.
#' \emph{arXiv:1706.05030}. \url{https://arxiv.org/abs/1706.05030}
#' \emph{Journal of the American Statistical Association}, to appear.
#' \url{https://doi.org/10.1007/s11222-017-9790-2}
#' @examples
#' ## Rotational symmetry holds
#'
Expand Down
14 changes: 7 additions & 7 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ output:

```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE, comment = "#>", fig.path = "README/README-",
collapse = TRUE, comment = "#>", fig.path = "README/README-",
message = FALSE, warning = FALSE, fig.asp = 1, fig.align = 'center'
)
```
Expand All @@ -22,7 +22,7 @@ rotasym

## Overview

Software companion for the paper "*On optimal tests for rotational symmetry against new classes of hyperspherical distributions*" (García-Portugués, Paindaveine and Verdebout, 2019). It implements the proposed tests for rotational symmetry of hyperspherical data and allows to replicate the data application presented.
Software companion for the paper "*On optimal tests for rotational symmetry against new classes of hyperspherical distributions*" (García-Portugués, Paindaveine and Verdebout, 2020). It implements the proposed tests for rotational symmetry of hyperspherical data and allows to replicate the data application presented.

## Installation

Expand Down Expand Up @@ -85,15 +85,15 @@ test_rotasym(data = data_0, type = "hyb_vMF")

## Data application: test for the rotational symmetry of sunspots

The data application in García-Portugués, Paindaveine and Verdebout (2019) can
The data application in García-Portugués, Paindaveine and Verdebout (2020) can
be reproduced through the script [sunspots-births.R](https://github.com/egarpor/rotasym/blob/master/data-raw/sunspots-births.R) (data gathering and preprocessing) and the code snippet below.

```{r, sunspots_births}
# Load data
data("sunspots_births")
sunspots_births$X <-
cbind(cos(sunspots_births$phi) * cos(sunspots_births$theta),
cos(sunspots_births$phi) * sin(sunspots_births$theta),
sunspots_births$X <-
cbind(cos(sunspots_births$phi) * cos(sunspots_births$theta),
cos(sunspots_births$phi) * sin(sunspots_births$theta),
sin(sunspots_births$phi))
# Test rotational symmetry for the 23rd cycle
Expand All @@ -114,4 +114,4 @@ example("sunspots_births")

## References

García-Portugués, E., Paindaveine, D., and Verdebout, T. (2019). On optimal tests for rotational symmetry against new classes of hyperspherical distributions. *arXiv:1706.05030*. <https://arxiv.org/abs/1706.05030>
García-Portugués, E., Paindaveine, D., and Verdebout, T. (2020). On optimal tests for rotational symmetry against new classes of hyperspherical distributions. *Journal of the American Statistical Association*, to appear. <https://doi.org/10.1007/s11222-017-9790-2>
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Overview

Software companion for the paper “*On optimal tests for rotational
symmetry against new classes of hyperspherical distributions*
(García-Portugués, Paindaveine and Verdebout, 2019). It implements the
(García-Portugués, Paindaveine and Verdebout, 2020). It implements the
proposed tests for rotational symmetry of hyperspherical data and allows
to replicate the data application presented.

Expand Down Expand Up @@ -110,16 +110,16 @@ Data application: test for the rotational symmetry of sunspots
--------------------------------------------------------------

The data application in García-Portugués, Paindaveine and Verdebout
(2019) can be reproduced through the script
(2020) can be reproduced through the script
[sunspots-births.R](https://github.com/egarpor/rotasym/blob/master/data-raw/sunspots-births.R)
(data gathering and preprocessing) and the code snippet below.

``` r
# Load data
data("sunspots_births")
sunspots_births$X <-
cbind(cos(sunspots_births$phi) * cos(sunspots_births$theta),
cos(sunspots_births$phi) * sin(sunspots_births$theta),
sunspots_births$X <-
cbind(cos(sunspots_births$phi) * cos(sunspots_births$theta),
cos(sunspots_births$phi) * sin(sunspots_births$theta),
sin(sunspots_births$phi))

# Test rotational symmetry for the 23rd cycle
Expand Down Expand Up @@ -278,7 +278,8 @@ example("sunspots_births")
References
----------

García-Portugués, E., Paindaveine, D., and Verdebout, T. (2019). On
García-Portugués, E., Paindaveine, D., and Verdebout, T. (2020). On
optimal tests for rotational symmetry against new classes of
hyperspherical distributions. *arXiv:1706.05030*.
<a href="https://arxiv.org/abs/1706.05030" class="uri">https://arxiv.org/abs/1706.05030</a>
hyperspherical distributions. *Journal of the American Statistical
Association*, to appear.
<a href="https://doi.org/10.1007/s11222-017-9790-2" class="uri">https://doi.org/10.1007/s11222-017-9790-2</a>
33 changes: 26 additions & 7 deletions inst/CITATION
Original file line number Diff line number Diff line change
@@ -1,19 +1,38 @@

year <- sub("-.*", "", meta$Date)
note <- paste("R package version", meta$Version)

citHeader("To cite rotasym in publications use:")

citEntry(entry = "Manual",
title = "{rotasym}: Tests for Rotational Symmetry on the Hypersphere",
author = personList(as.person("Eduardo García-Portugués"),
as.person("Davy Paindaveine"),
as.person("Thomas Verdebout")),
year = year,
note = note,
url = "https://CRAN.R-project.org/package=rotasym",
textVersion =
paste("García-Portugués, E., Paindaveine, D., and Verdebout, T. (2020).",
"rotasym: Tests for Rotational Symmetry on the Hypersphere.",
paste0("R package version ", meta$Version, "."),
"https://CRAN.R-project.org/package=rotasym")
)

citEntry(entry = "Article",
title = "On optimal tests for rotational symmetry against new classes of hyperspherical distributions",
author = personList(as.person("Eduardo García-Portugués"),
as.person("Davy Paindaveine"),
as.person("Thomas Verdebout")),
journal = "arXiv:1706.05030",
year = "2019",
volume = "",
journal = "Journal of the American Statistical Association",
year = "2020",
volume = "to appear.",
number = "",
pages = "",
url = "https://arxiv.org/abs/1706.05030",
url = "https://doi.org/10.1007/s11222-017-9790-2",
textVersion =
paste("García-Portugués, E., Paindaveine, D., and Verdebout, T. (2019).",
paste("García-Portugués, E., Paindaveine, D., and Verdebout, T. (2020).",
"On optimal tests for rotational symmetry against new classes of hyperspherical distributions.",
"arXiv:1706.05030.",
"URL https://arxiv.org/abs/1706.05030.")
"Journal of the American Statistical Association, to appear.",
"https://doi.org/10.1007/s11222-017-9790-2")
)
5 changes: 3 additions & 2 deletions man/cosines-signs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions man/estimators.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 8 additions & 7 deletions man/rotasym-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions man/tang-norm-decomp.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions man/tangent-elliptical.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions man/tangent-vMF.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2887028

Please sign in to comment.