Open Access. Powered by Scholars. Published by Universities.®

Articles 121 - 150 of 708

Full-Text Articles in Programming Languages and Compilers

News From The Forwards Taskforce, Heather Turner Dec 2020

News From The Forwards Taskforce, Heather Turner

The R Journal

Forwards is an R Foundation taskforce working to widen the participation of under represented groups in the R project and in related activities, such as the useR! conference. This report rounds up activities of the taskforce during the second half of 2020.


Farmtest: An R Package For Factor-Adjusted Robust Multiple Testing, Koushiki Bose, Jianqing Fan, Yuan Ke, Xiaoou Pan, Wen-Xin Zhou Dec 2020

Farmtest: An R Package For Factor-Adjusted Robust Multiple Testing, Koushiki Bose, Jianqing Fan, Yuan Ke, Xiaoou Pan, Wen-Xin Zhou

The R Journal

We provide a publicly available library FarmTest in the R programming system. This library implements a factor-adjusted robust multiple testing principle proposed by Fan et al. (2019) for large-scale simultaneous inference on mean effects. We use a multi-factor model to explicitly capture the dependence among a large pool of variables. Three types of factors are considered: observable, latent, and a mixture of observable and latent factors. The non-factor case, which corresponds to standard multiple mean testing under weak dependence, is also included. The library implements a series of adaptive Huber methods integrated with fast data-driven tuning schemes to estimate model …


Changes In R 3.6–4.0, Tomas Kalibera, Sebastian Meyer, Kurt Hornik Dec 2020

Changes In R 3.6–4.0, Tomas Kalibera, Sebastian Meyer, Kurt Hornik

The R Journal

We give a selection of the most important changes in R 4.0.0 and in the R 3.6 release series. Some statistics on source code commits and bug tracking activities are also provided.


Openland: Software For Quantitative Analysis And Visualization Of Land Use And Cover Change, Reginal Exavier, Peter Zeilhofer Dec 2020

Openland: Software For Quantitative Analysis And Visualization Of Land Use And Cover Change, Reginal Exavier, Peter Zeilhofer

The R Journal

There is an increasing availability of spatially explicit, freely available land use and cover (LUC) time series worldwide. Because of the enormous amount of data this represents, the continuous updates and improvements in spatial and temporal resolution and category differentiation, as well as increasingly dynamic and complex changes made, manual data extraction and analysis is highly time consuming, and making software tools available to automatize LUC data assessment is becoming imperative. This paper presents a software developed in R, which combines LUC raster time series data and their transitions, calculates state-of-the-art LUC change indicators, and creates spatio-temporal visualizations, all in …


Analyzing Basket Trials Under Multisource Exchangeability Assumptions, Michael J. Kane, Nan Chen, Alexander M. Kaizer, Xun Jiang, H Amy Xia, Brian P. Hobbs Dec 2020

Analyzing Basket Trials Under Multisource Exchangeability Assumptions, Michael J. Kane, Nan Chen, Alexander M. Kaizer, Xun Jiang, H Amy Xia, Brian P. Hobbs

The R Journal

Basket designs are prospective clinical trials that are devised with the hypothesis that the presence of selected molecular features determine a patient’s subsequent response to a particular “targeted” treatment strategy. Basket trials are designed to enroll multiple clinical subpopulations to which it is assumed that the therapy in question offers beneficial efficacy in the presence of the targeted molecular profile. The treatment, however, may not offer acceptable efficacy to all subpopulations enrolled. Moreover, for rare disease settings, such as oncology wherein these trials have become popular, marginal measures of statistical evidence are difficult to interpret for sparsely enrolled subpopulations. Consequently, …


Motbfs: An R Package For Learning Hybrid Bayesian Networks Using Mixtures Of Truncated Basis Functions, Inmaculada Pérez-Bernabé, Ana D. Maldonado, Antonio Salmerón, Thomas D. Nielsen Dec 2020

Motbfs: An R Package For Learning Hybrid Bayesian Networks Using Mixtures Of Truncated Basis Functions, Inmaculada Pérez-Bernabé, Ana D. Maldonado, Antonio Salmerón, Thomas D. Nielsen

The R Journal

This paper introduces MoTBFs, an R package for manipulating mixtures of truncated basis functions. This class of functions allows the representation of joint probability distributions involving discrete and continuous variables simultaneously, and includes mixtures of truncated exponentials and mixtures of polynomials as special cases. The package implements functions for learning the parameters of univariate, multivariate, and conditional distributions, and provides support for parameter learning in Bayesian networks with both discrete and continuous variables. Probabilistic inference using forward sampling is also implemented. Part of the functionality of the MoTBFs package relies on the bnlearn package, which includes functions for learning the …


Kuhn-Tucker And Multiple Discrete-Continuous Extreme Value Model Estimation And Simulation In R: The Rmdcev Package, Patrick Lloyd-Smith Dec 2020

Kuhn-Tucker And Multiple Discrete-Continuous Extreme Value Model Estimation And Simulation In R: The Rmdcev Package, Patrick Lloyd-Smith

The R Journal

This paper introduces the package rmdcev in R for estimation and simulation of KuhnTucker demand models with individual heterogeneity. The models supported by rmdcev are the multiple-discrete continuous extreme value (MDCEV) model and Kuhn-Tucker specification common in the environmental economics literature on recreation demand. Latent class and random parameters specifications can be implemented and the models are fit using maximum likelihood estimation or Bayesian estimation. The rmdcev package also implements demand forecasting and welfare calculation for policy simulation. The purpose of this paper is to describe the model estimation and simulation framework and to demonstrate the functionalities of rmdcev using …


Kspm: A Package For Kernel Semi-Parametric Models, Catherine Schramm, Sébastien Jacquemont, Karim Oualkacha, Aurélie Labbe, Celia M. T. Greenwood Dec 2020

Kspm: A Package For Kernel Semi-Parametric Models, Catherine Schramm, Sébastien Jacquemont, Karim Oualkacha, Aurélie Labbe, Celia M. T. Greenwood

The R Journal

Kernel semi-parametric models and their equivalence with linear mixed models provide analysts with the flexibility of machine learning methods and a foundation for inference and tests of hypothesis. These models are not impacted by the number of predictor variables, since the kernel trick transforms them to a kernel matrix whose size only depends on the number of subjects. Hence, methods based on this model are appealing and numerous, however only a few R programs are available and none includes a complete set of features. Here, we present the KSPM package to fit the kernel semi-parametric model and its extensions in …


Ordinalclust: An R Package To Analyze Ordinal Data, Margot Selosse, Julien Jacques, Christophe Biernacki Dec 2020

Ordinalclust: An R Package To Analyze Ordinal Data, Margot Selosse, Julien Jacques, Christophe Biernacki

The R Journal

Ordinal data are used in many domains, especially when measurements are collected from people through observations, tests, or questionnaires. ordinalClust is an innovative R package dedicated to ordinal data that provides tools for modeling, clustering, co-clustering and classifying such data. Ordinal data are modeled using the BOS distribution, which is a model with two meaningful parameters referred to as "position" and "precision". The former indicates the mode of the distribution and the latter describes how scattered the data are around the mode: the user is able to easily interpret the distribution of their data when given these two parameters. The …


A Fast And Scalable Implementation Method For Competing Risks Data With The R Package Fastcmprsk, Eric S. Kawaguchi, Jenny I. Shen, Gang Li, Marc A. Suchard Dec 2020

A Fast And Scalable Implementation Method For Competing Risks Data With The R Package Fastcmprsk, Eric S. Kawaguchi, Jenny I. Shen, Gang Li, Marc A. Suchard

The R Journal

Advancements in medical informatics tools and high-throughput biological experimentation make large-scale biomedical data routinely accessible to researchers. Competing risks data are typical in biomedical studies where individuals are at risk to more than one cause (type of event) which can preclude the others from happening. The Fine and Gray (1999) proportional subdistribution hazards model is a popular and well-appreciated model for competing risks data and is currently implemented in a number of statistical software packages. However, current implementations are not computationally scalable for large-scale competing risks data. We have developed an R package, fastcmprsk, that uses a novel forward-backward scan …


Fitzroy: An R Package To Encourage Reproducible Sports Analysis, Robert Nguyen, James Day, David Warton, Oscar Lane Dec 2020

Fitzroy: An R Package To Encourage Reproducible Sports Analysis, Robert Nguyen, James Day, David Warton, Oscar Lane

The R Journal

The importance of reproducibility, and the related issue of open access to data, has received a lot of recent attention. Momentum on these issues is gathering in the sports analytics community. While Australian Rules football (AFL) is the leading commercial sport in Australia, unlike popular international sports, there has been no mechanism for the public to access comprehensive statistics on players and teams. Expert commentary currently relies heavily on data that isn’t made readily accessible and this produces an unnecessary barrier for the development of an inclusive sports analytics community. We present the R package fitzRoy to provide easy access …


Tulip: A Toolbox For Linear Discriminant Analysis With Penalties, Yuqing Pan, Qing Mai, Xin Zhang Dec 2020

Tulip: A Toolbox For Linear Discriminant Analysis With Penalties, Yuqing Pan, Qing Mai, Xin Zhang

The R Journal

Linear discriminant analysis (LDA) is a powerful tool in building classifiers with easy computation and interpretation. Recent advancements in science technology have led to the popularity of datasets with high dimensions, high orders and complicated structure. Such datasetes motivate the generalization of LDA in various research directions. The R package TULIP integrates several popular high-dimensional LDA-based methods and provides a comprehensive and user-friendly toolbox for linear, semi-parametric and tensor-variate classification. Functions are included for model fitting, cross validation and prediction. In addition, motivated by datasets with diverse sources of predictors, we further include functions for covariate adjustment. Our package is …


Comparing Multiple Survival Functions With Crossing Hazards In R, Hsin-Wen Chang, Pei-Yuan Tsai, Jen-Tse Kao, Guo-You Lan Dec 2020

Comparing Multiple Survival Functions With Crossing Hazards In R, Hsin-Wen Chang, Pei-Yuan Tsai, Jen-Tse Kao, Guo-You Lan

The R Journal

It is frequently of interest in time-to-event analysis to compare multiple survival functions nonparametrically. However, when the hazard functions cross, tests in existing R packages do not perform well. To address the issue, we introduce the package survELtest, which provides tests for comparing multiple survival functions with possibly crossing hazards. Due to its powerful likelihood ratio formulation, this is the only R package to date that works when the hazard functions cross. We illustrate the use of the procedures in survELtest by applying them to data from randomized clinical trials and simulated datasets. We show that these methods lead …


The Biglasso Package: A Memory- And Computation-Efficient Solver For Lasso Model Fitting With Big Data In R, Yaohui Zeng, Patrick Breheny Dec 2020

The Biglasso Package: A Memory- And Computation-Efficient Solver For Lasso Model Fitting With Big Data In R, Yaohui Zeng, Patrick Breheny

The R Journal

Penalized regression models such as the lasso have been extensively applied to analyzing high-dimensional data sets. However, due to memory limitations, existing R packages like glmnet and ncvreg are not capable of fitting lasso-type models for ultrahigh-dimensional, multi-gigabyte data sets that are increasingly seen in many areas such as genetics, genomics, biomedical imaging, and high-frequency finance. In this research, we implement an R package called biglasso that tackles this challenge. biglasso utilizes memory-mapped files to store the massive data on the disk, only reading data into memory when necessary during model fitting, and is thus able to handle out-of-core computation …


Ari: The Automated R Instructor, Sean Kross, Jeffrey T. Leek, John Muschelli Jun 2020

Ari: The Automated R Instructor, Sean Kross, Jeffrey T. Leek, John Muschelli

The R Journal

We present the ari package for automatically generating technology-focused educational videos. The goal of the package is to create reproducible videos, with the ability to change and update video content seamlessly. We present several examples of generating videos including using R Markdown slide decks, PowerPoint slides, or simple images as source material. We also discuss how ari can help instructors reach new audiences through programmatically translating materials into other languages.


The R Journal (June 2020) 12(1): Complete Issue, The R Foundation Jun 2020

The R Journal (June 2020) 12(1): Complete Issue, The R Foundation

The R Journal

Editorial, Michael J. Kane

Contributed Research Articles

gk: An R Package for the g-and-k and Generalised g-and-h Distributions, Dennis Prangle

NlinTS: An R Package for Causality Detection in Time Series, Youssef Hmamouche

Mapping Smoothed Spatial Effect Estimates from Individual-Level Data: MapGAM, Lu Bai, Daniel L. Gillen, Scott M. Bartell, and Verónica M. Vieira

mudfold: An R Package for Nonparametric IRT Modelling of Unfolding Processes, Spyros E. Balafas, Wim P. Krijnen, Wendy J. Post, and Ernst C. Wit

tsmp: An R Package for Time Series with Matrix Profile, Francisco Bischoff and Pedro Pereira Rodrigues

Individual-Level Modelling of Infectious Disease Data: EpiILM, …


S, R, And Data Science, John M. Chambers Jun 2020

S, R, And Data Science, John M. Chambers

The R Journal

Data science is increasingly important and challenging. It requires computational tools and programming environments that handle big data and difficult computations, while supporting creative, high-quality analysis. The R language and related software play a major role in computing for data science. R is featured in most programs for training in the field. R packages provide tools for a wide range of purposes and users. The description of a new technique, particularly from research in statistics, is frequently accompanied by an R package, greatly increasing the usefulness of the description.

The history of R makes clear its connection to data science. …


Linear Fractional Stable Motion With The Rlfsm R Package, Stepan Mazur, Dmitry Otryakhin Jun 2020

Linear Fractional Stable Motion With The Rlfsm R Package, Stepan Mazur, Dmitry Otryakhin

The R Journal

Linear fractional stable motion is a type of a stochastic integral driven by symmetric alpha-stable Lévy motion. The integral could be considered as a non-Gaussian analogue of the fractional Brownian motion. The present paper discusses R package rlfsm created for numerical procedures with the linear fractional stable motion. It is a set of tools for simulation of these processes as well as performing statistical inference and simulation studies on them. We introduce: tools that we developed to work with that type of motions as well as methods and ideas underlying them. Also we perform numerical experiments to show finite-sample behavior …


Rcosmo: R Package For Analysis Of Spherical, Healpix And Cosmological Data, Daniel Fryer, Ming Li, Andriy Olenko Jun 2020

Rcosmo: R Package For Analysis Of Spherical, Healpix And Cosmological Data, Daniel Fryer, Ming Li, Andriy Olenko

The R Journal

The analysis of spatial observations on a sphere is important in areas such as geosciences, physics and embryo research, just to name a few. The purpose of the package rcosmo is to conduct efficient information processing, visualisation, manipulation and spatial statistical analysis of Cosmic Microwave Background (CMB) radiation and other spherical data. The package was developed for spherical data stored in the Hierarchical Equal Area isoLatitude Pixelation (Healpix) representation. rcosmo has more than 100 different functions. Most of them initially were developed for CMB, but also can be used for other spherical data as rcosmo contains tools for transforming spherical …


Mudfold: An R Package For Nonparametric Irt Modelling Of Unfolding Processes, Spyros E. Balafas, Wim P. Krijnen, Wendy J. Post, Ernst C. Wit Jun 2020

Mudfold: An R Package For Nonparametric Irt Modelling Of Unfolding Processes, Spyros E. Balafas, Wim P. Krijnen, Wendy J. Post, Ernst C. Wit

The R Journal

Item response theory (IRT) models for unfolding processes use the responses of individuals to attitudinal tests or questionnaires in order to infer item and person parameters located on a latent continuum. Parametric models in this class use parametric functions to model the response process, which in practice can be restrictive. MUDFOLD (Multiple UniDimensional unFOLDing) can be used to obtain estimates of person and item ranks without imposing strict parametric assumptions on the item response functions (IRFs). This paper describes the implementation of the MUDFOLD method for binary preferential-choice data in the R package mudfold. The latter incorporates estimation, visualization, …


Mapping Smoothed Spatial Effect Estimates From Individual-Level Data: Mapgam, Lu Bai, Daniel L. Gillen, Scott M. Bartell, Verónica M. Vieira Jun 2020

Mapping Smoothed Spatial Effect Estimates From Individual-Level Data: Mapgam, Lu Bai, Daniel L. Gillen, Scott M. Bartell, Verónica M. Vieira

The R Journal

We introduce and illustrate the utility of MapGAM, a user-friendly R package that provides a unified framework for estimating, predicting and drawing inference on covariate-adjusted spatial effects using individual-level data. The package also facilitates visualization of spatial effects via automated mapping procedures. MapGAM estimates covariate-adjusted spatial associations with a univariate or survival outcome using generalized additive models that include a non-parametric bivariate smooth term of geolocation parameters. Estimation and mapping methods are implemented for continuous, discrete, and right-censored survival data. In the current manuscript, we summarize the methodology implemented in MapGAM and illustrate the package using two example simulated …


Nlints: An R Package For Causality Detection In Time Series, Youssef Hmamouche Jun 2020

Nlints: An R Package For Causality Detection In Time Series, Youssef Hmamouche

The R Journal

The causality is an important concept that is widely studied in the literature, and has several applications, especially when modelling dependencies within complex data, such as multivariate time series. In this article, we present a theoretical description of methods from the NlinTS package, and we focus on causality measures. The package contains the classical Granger causality test. To handle non-linear time series, we propose an extension of this test using an artificial neural network. The package includes an implementation of the Transfer entropy, which is also considered as a non linear causality measure based on information theory. For discrete variables, …


Editorial, Michael J. Kane Jun 2020

Editorial, Michael J. Kane

The R Journal

Onbehalf of the editorial board, I am pleased to present Volume 12, Issue 1 of the R Journal and mysecond issue as the Editor in Chief. Since the last issue Simon Urbanek has joined the editorial board and we have made a few structural changes. First, the R Foundation has approved the R Journal having Associate Editors. This change will allow us to address the increase in submission volume. The addition of the new AE positions should help alleviate some of the workload the editors have been dealing with and will result in shorter turn-around times for submissions. Second, complete …


Gk: An R Package For The G-And-K And Generalised G-And-H Distributions, Dennis Prangle Jun 2020

Gk: An R Package For The G-And-K And Generalised G-And-H Distributions, Dennis Prangle

The R Journal

The g-and-k and (generalised) g-and-h distributions are flexible univariate distributions which can model highly skewed or heavy tailed data through only four parameters: location and scale, and two shape parameters influencing the skewness and kurtosis. These distributions have the unusual property that they are defined through their quantile function (inverse cumulative distribution function) and their density is unavailable in closed form, which makes parameter inference complicated. This paper presents the gk R package to work with these distributions. It provides the usual distribution functions and several algorithms for inference of independent identically distributed data, including the finite difference stochastic approximation …


Similar: R Code Clone And Plagiarism Detection, Maciej Bartoszuk, Marek Gagolewski Jun 2020

Similar: R Code Clone And Plagiarism Detection, Maciej Bartoszuk, Marek Gagolewski

The R Journal

Third-party software for assuring source code quality is becoming increasingly popular. Tools that evaluate the coverage of unit tests, perform static code analysis, or inspect run-time memory use are crucial in the software development life cycle. More sophisticated methods allow for performing meta-analyses of large software repositories, e.g., to discover abstract topics they relate to or common design patterns applied by their developers. They may be useful in gaining a better understanding of the component interdependencies, avoiding cloned code as well as detecting plagiarism in programming classes.

Ameaningful measure of similarity of computer programs often forms the basis of such …


Coxphlb: An R Package For Analyzing Length Biased Data Under Cox Model, Chi Hyun Lee, Heng Zhou, Jing Ning, Diane D. Liu, Yu Shen Jun 2020

Coxphlb: An R Package For Analyzing Length Biased Data Under Cox Model, Chi Hyun Lee, Heng Zhou, Jing Ning, Diane D. Liu, Yu Shen

The R Journal

Data subject to length-biased sampling are frequently encountered in various applications including prevalent cohort studies and are considered as a special case of left-truncated data under the stationarity assumption. Many semiparametric regression methods have been proposed for length biased data to model the association between covariates and the survival outcome of interest. In this paper, we present a brief review of the statistical methodologies established for the analysis of length-biased data under the Cox model, which is the most commonly adopted semiparametric model, and introduce an R package CoxPhLb that implements these methods. Specifically, the package includes features such as …


The R Package Nonprobest For Estimation In Non-Probability Surveys, M. Rueda, R. Ferri-García, L. Castro Jun 2020

The R Package Nonprobest For Estimation In Non-Probability Surveys, M. Rueda, R. Ferri-García, L. Castro

The R Journal

Different inference procedures are proposed in the literature to correct selection bias that might be introduced with non-random sampling mechanisms. The R package NonProbEst enables the estimation of parameters using some of these techniques to correct selection bias in non-probability surveys. The mean and the total of the target variable are estimated using Propensity Score Adjustment, calibration, statistical matching, model-based, model-assisted and model-calibratated techniques. Confidence intervals can also obtained for each method. Machine learning algorithms can be used for estimating the propensities or for predicting the unknown values of the target variable for the non-sampled units. Variance of a given …


Variable Importance Plots: An Introduction To The Vip Package, Brandon M. Bartoszuk, Marek Gagolewski Jun 2020

Variable Importance Plots: An Introduction To The Vip Package, Brandon M. Bartoszuk, Marek Gagolewski

The R Journal

In the era of “big data”, it is becoming more of a challenge to not only build state-of-the-art predictive models, but also gain an understanding of what’s really going on in the data. For example, it is often of interest to know which, if any, of the predictors in a fitted model are relatively influential on the predicted outcome. Some modern algorithms—like random forests (RFs) and gradient boosted decision trees (GBMs)—have a natural way of quantifying the importance or relative influence of each feature. Other algorithms—like naive Bayes classifiers and support vector machines—are not capable of doing so and model-agnostic …


Npordtests: An R Package Of Nonparametric Tests For Equality Of Location Against Ordered Alternatives, Bulent Altunkaynak, Hamza Gamgam Jun 2020

Npordtests: An R Package Of Nonparametric Tests For Equality Of Location Against Ordered Alternatives, Bulent Altunkaynak, Hamza Gamgam

The R Journal

Ordered alternatives are an important statistical problem in many situation such as increased risk of congenital malformation caused by excessive alcohol consumption during pregnancy life test experiments, drug-screening studies, dose-finding studies, the dose-response studies, age-related response. There are numerous other examples of this nature. In this paper, we present the npordtests package to test the equality of locations for ordered alternatives. The package includes the Jonckheere Terpstra, Beier and Buning’s Adaptive, Modified Jonckheere-Terpstra, Terpstra-Magel, Ferdhiana Terpstra-Magel, KTP, S and Gaur’s Gc tests. A simulation study is conducted to determine which test is the most appropriate test for which scenario and …


Mistr: A Computational Framework For Mixture And Composite Distributions, Lukas Sablica, Kurt Hornik Jun 2020

Mistr: A Computational Framework For Mixture And Composite Distributions, Lukas Sablica, Kurt Hornik

The R Journal

No abstract provided.