GET: Global envelopes

The R package GET provides global envelopes which can be used for central regions of functional or multivariate data (e.g. outlier detection, functional boxplot), for graphical Monte Carlo and permutation tests where the test statistic is a multivariate vector or function (e.g. goodness-of-fit testing for point patterns and random sets, functional ANOVA, functional GLM, n-sample test of correspondence of distribution functions), and for global confidence and prediction bands (e.g. confidence band in polynomial regression, Bayesian posterior prediction).

The development version

The github repository holds a copy of the current development version of the contributed R package GET.

This development version is as or more recent than the official release of GET on the Comprehensive R Archive Network (CRAN) at

Where is the official release?

For the most recent official release of GET, see


Installing the official release

To install the official release of GET from CRAN, start R and type


Installing the development version

The easiest way to install the GET library from github is through the remotes package. Start R and type:


If you do not have the R library remotes installed, install it first by running


After installation, in order to start using GET, load it to R and see the main help page, which describes the functions of the library:


If you want to have also vignettes working, you should also install packages from the ‘suggests’ field, have MiKTeX on your computer, and install the library with

install_github('myllym/GET', build_vignettes = TRUE)


The package contains four vignettes. The GET vignette describes the package in general. It is available by starting R and typing


This vignette corresponds to Myllymäki and Mrkvička (2023).

The package provides also a vignette for global envelopes for point pattern analyses, which is available by starting R and typing


The third vignette describes and provides code for the examples of Mrkvička and Myllymäki (2023) using the false discovery rate (FDR) envelopes,


Finally, the fourth vignette, available by


shows how the methodology proposed by Mrkvička et al. (2023b) for detecting hotspots on a linear network can be performed using GET.

All vignettes are also available at the package webpage


Currently two branches are provided in the development version. The main branch of GET is called master.

The other branches are called FDR and quantileregression. The FDR branch includes also the experimental FDR envelopes tested in Mrkvička and Myllymäki (2023). The main branch includes the FDR envelopes which were found to have good performance in Mrkvička and Myllymäki (2023).

We note that the quantileregression branch, which included the implementation of the global quantile regression proposed in Mrkvička et al. (2023a), was recently merger to the master.


To cite GET in publications use

Myllymäki, M. and Mrkvička, T. (2023). GET: Global envelopes in R. arXiv:1911.06583 [stat.ME]

Myllymäki, M., Mrkvička, T., Grabarnik, P., Seijo, H. and Hahn, U. (2017). Global envelope tests for spatial processes. Journal of the Royal Statistical Society: Series B (Statistical Methodology) 79: 381-404. doi: 10.1111/rssb.12172 (You can find the preprint version of the article here:

and a suitable selection of:

Myllymäki, M., Grabarnik, P., Seijo, H., and Stoyan, D. (2015). Deviation test construction and power comparison for marked spatial point patterns. Spatial Statistics 11: 19-34. (You can find the preprint version of the article here:

Mrkvička, T., Soubeyrand, S., Myllymäki, M., Grabarnik, P., and Hahn, U. (2016). Monte Carlo testing in spatial statistics, with applications to spatial residuals. Spatial Statistics 18, Part A: 40–53.

Mrkvička, T., Myllymäki, M. and Hahn, U. (2017). Multiple Monte Carlo testing, with applications in spatial point processes. Statistics and Computing 27 (5): 1239-1255.

Mrkvička, T., Myllymäki, M., Jilek, M. and Hahn, U. (2020). A one-way ANOVA test for functional data with graphical interpretation. Kybernetika 56 (3), 432-458.

Myllymäki, M., Kuronen, M. and Mrkvička, T. (2020). Testing global and local dependence of point patterns on covariates in parametric models. Spatial Statistics 42, 100436.

Mrkvička, T., Roskovec, T. and Rost, M. (2021). A nonparametric graphical tests of significance in functional GLM. Methodology and Computing in Applied Probability 23, 593-612.

Dai, W., Athanasiadis, S. and Mrkvička, T. (2022). A new functional clustering method with combined dissimilarity sources and graphical interpretation. Intech open.

Dvořák, J. and Mrkvička, T. (2022). Graphical tests of independence for general distributions. Computational Statistics 37, 671–699.

Mrkvička, T., Myllymäki, M., Kuronen, M. and Narisetty, N. N. (2022). New methods for multiple testing in permutation inference for the general linear model. Statistics in Medicine 41(2), 276-297.

Mrkvička and Myllymäki (2023). False discovery rate envelopes. Statistics and Computing 33, 109.

Mrkvička, T., Konstantinou, K., Kuronen, M. and Myllymäki, M. (2023a). Global quantile regression. arXiv:2309.04746 [stat.ME]

Mrkvička T., Kraft S., Blažek V., Myllymäki M. (2023b). Hotspot detection on a linear network in the presence of covariates: a case study on road crash data. Available at SSRN: