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

University of Nebraska - Lincoln

Discipline
Keyword
Publication Year
Publication

Articles 61 - 90 of 747

Full-Text Articles in Numerical Analysis and Scientific Computing

Drhotnet: An R Package For Detecting Differential Risk Hotspots On A Linear Network, Álvaro Briz-Redón, Francisco Martínez-Ruiz, Francisco Montes Dec 2021

Drhotnet: An R Package For Detecting Differential Risk Hotspots On A Linear Network, Álvaro Briz-Redón, Francisco Martínez-Ruiz, Francisco Montes

The R Journal

One of the most common applications of spatial data analysis is detecting zones, at a certain scale, where a point-referenced event under study is especially concentrated. The detection of such zones, which are usually referred to as hotspots, is essential in certain fields such as criminology, epidemiology, or traffic safety. Traditionally, hotspot detection procedures have been developed over areal units of analysis. Although working at this spatial scale can be suitable enough for many research or practical purposes, detecting hotspots at a more accurate level (for instance, at the road segment level) may be more convenient sometimes. Furthermore, it is …


We Need Trustworthy R Packages, William Michael Landau Dec 2021

We Need Trustworthy R Packages, William Michael Landau

The R Journal

There is a need for rigorous software engineering in R packages, and there is a need for new research to bridge scientific computing with more traditional computing. Automated tools, interdisciplinary graduate courses, code reviews, and a welcoming developer community will continue to democratize best practices. Democratized software engineering will improve the quality, correctness, and integrity of scientific software, and by extension, the disciplines that rely on it


A Guided Tour Of Bayesian Regression, Andrés Ramírez–Hassan, Mateo Graciano-Londoño Dec 2021

A Guided Tour Of Bayesian Regression, Andrés Ramírez–Hassan, Mateo Graciano-Londoño

The R Journal

This paper presents a Graphical User Interface (GUI) to carry out a Bayesian regression analysis in a very friendly environment without any programming skills (drag and drop). This paper is designed for teaching and applied purposes at an introductory level. Our GUI is based on an interactive web application using shiny and libraries from R. We carry out some applications to highlight the potential of our GUI for applied researchers and practitioners. In addition, the Help option in the main tap panel has an extended version of this paper, where we present the basic theory underlying all regression models that …


Visual Diagnostics For Constrained Optimisation With Application To Guided Tours, H Sherry Zhang, Dianne Cook, Ursula Laa, Nicolas Langrené, Patricia Menéndez Dec 2021

Visual Diagnostics For Constrained Optimisation With Application To Guided Tours, H Sherry Zhang, Dianne Cook, Ursula Laa, Nicolas Langrené, Patricia Menéndez

The R Journal

A guided tour helps to visualise high-dimensional data by showing low-dimensional projections along a projection pursuit optimisation path. Projection pursuit is a generalisation of principal component analysis in the sense that different indexes are used to define the interestingness of the projected data. While much work has been done in developing new indexes in the literature, less has been done on understanding the optimisation. Index functions can be noisy, might have multiple local maxima as well as an optimal maximum, and are constrained to generate orthonormal projection frames, which complicates the optimization. In addition, projection pursuit is primarily used for …


A Unifying Framework For Parallel And Distributed Processing In R Using Futures, Henrik Bengtsson Dec 2021

A Unifying Framework For Parallel And Distributed Processing In R Using Futures, Henrik Bengtsson

The R Journal

A future is a programming construct designed for concurrent and asynchronous evaluation of code, making it particularly useful for parallel processing. The future package implements the Future API for programming with futures in R. This minimal API provides sufficient constructs for implementing parallel versions of well-established, high-level map-reduce APIs. The future ecosystem supports exception handling, output and condition relaying, parallel random number generation, and automatic identification of globals lowering the threshold to parallelize code. The Future API bridges parallel frontends with parallel backends, following the philosophy that end-users are the ones who choose the parallel backend while the developer focuses …


Compmodels: A Suite Of Computer Model Test Functions For Bayesian Optimization, Tony Pourmohamad Dec 2021

Compmodels: A Suite Of Computer Model Test Functions For Bayesian Optimization, Tony Pourmohamad

The R Journal

The CompModels package for R provides a suite of computer model test functions that can be used for computer model prediction/emulation, uncertainty quantification, and calibration. Moreover, the CompModels package is especially well suited for the sequential optimization of computer models. The package is a mix of real-world physics problems, known mathematical functions, and black-box functions that have been converted into computer models with the goal of Bayesian (i.e., sequential) optimization in mind. Likewise, the package contains computer models that represent either the constrained or unconstrained optimization case, each with varying levels of difficulty. In this paper, we illustrate the use …


Generalized Linear Randomized Response Modeling Using Glmmrr, Jean-Paul Fox, Konrad Klotzke, Duco Veen Dec 2021

Generalized Linear Randomized Response Modeling Using Glmmrr, Jean-Paul Fox, Konrad Klotzke, Duco Veen

The R Journal

Randomized response (RR) designs are used to collect response data about sensitive behaviors (e.g., criminal behavior, sexual desires). The modeling of RR data is more complex since it requires a description of the RR process. For the class of generalized linear mixed models (GLMMs), the RR process can be represented by an adjusted link function, which relates the expected RR to the linear predictor for most common RR designs. The package GLMMRR includes modified link functions for four different cumulative distributions (i.e., logistic, cumulative normal, Gumbel, Cauchy) for GLMs and GLMMs, where the package lme4 facilitates ML and REML estimation. …


Passo: An R Package For Assessing Partial Association Between Ordinal Variables, Shaobo Li, Xiaorui Zhu, Yuejie Chen, Dungang Liu Dec 2021

Passo: An R Package For Assessing Partial Association Between Ordinal Variables, Shaobo Li, Xiaorui Zhu, Yuejie Chen, Dungang Liu

The R Journal

Partial association, the dependency between variables after adjusting for a set of covariates, is an important statistical notion for scientific research. However, if the variables of interest are ordered categorical data, the development of statistical methods and software for assessing their partial association is limited. Following the framework established by Liu et al. (2021), we develop an R package PAsso for assessing Partial Associations between ordinal variables. The package provides various functions that allow users to perform a wide spectrum of assessments, including quantification, visualization, and hypothesis testing. In this paper, we discuss the implementation of PAsso in …


An R Package For Non-Normal Multivariate Distributions: Simulation And Probability Calculations From Multivariate Lomax (Pareto Type Ii) And Other Related Distributions, Zhixin Lun, Ravindra Khattree Dec 2021

An R Package For Non-Normal Multivariate Distributions: Simulation And Probability Calculations From Multivariate Lomax (Pareto Type Ii) And Other Related Distributions, Zhixin Lun, Ravindra Khattree

The R Journal

Convenient and easy-to-use programs are readily available in R to simulate data from and probability calculations for several common multivariate distributions such as normal and t. However, functions for doing so from other less common multivariate distributions, especially those which are asymmetric, are not as readily available, either in R or otherwise. We introduce the R package NonNorMvtDist to generate random numbers from multivariate Lomax distribution, which constitutes a very flexible family of skewed multivariate distributions. Further, by applying certain useful properties of multivariate Lomax distribution, multivariate cases of generalized Lomax, Mardia’s Pareto of Type I, Logistic, Burr, Cook-Johnson’s uniform, …


Risk-Based Machine Learning Approaches For Probabilistic Transient Stability, Umair Shahzad Dec 2021

Risk-Based Machine Learning Approaches For Probabilistic Transient Stability, Umair Shahzad

Department of Electrical and Computer Engineering: Dissertations, Theses, and Student Research

Power systems are getting more complex than ever and are consequently operating close to their limit of stability. Moreover, with the increasing demand of renewable wind generation, and the requirement to maintain a secure power system, the importance of transient stability cannot be overestimated. Considering its significance in power system security, it is important to propose a different approach for enhancing the transient stability, considering uncertainties. Current deterministic industry practices of transient stability assessment ignore the probabilistic nature of variables (fault type, fault location, fault clearing time, etc.). These approaches typically provide a conservative criterion and can result in expensive …


The R Developer Community Does Have A Strong Software Engineering Culture, Maëlle Salmon, Karthik Ram Dec 2021

The R Developer Community Does Have A Strong Software Engineering Culture, Maëlle Salmon, Karthik Ram

The R Journal

There is a strong software engineering culture in the R developer community. We recommend creating, updating and vetting packages as well as keeping up with community standards. We invite contributions to the rOpenSci project, where participants can gain experience that will shape their work and that of their peers.


The R Journal (December 2021) 13(2): Complete Issue, The R Foundation Nov 2021

The R Journal (December 2021) 13(2): Complete Issue, The R Foundation

The R Journal

On behalf of the R Foundation and the Editorial board, I am pleased to present Volume 13 Issue 2 of the R Journal. This is the biggest issue ever!

First, some news from the Editorial board. A big thank you to Mike Kane, who has finished his term. As Editor-in-Chief in 2020, Mike expanded operations to include Associate Editors in the reviewing process. The R Journal now has a team of 20 Associate Editors. This has helped to manage the increasing number of submissions. We welcome new Associate Editors, Przemek Biecek, Chris Brunsdon, Mine Çetinkaya-Rundel, Kieran Healy, Adam Loy, Priyanga …


Economically Optimal Nitrogen Side-Dressing Based On Vegetation Indices From Satellite Images Through On-Farm Experiments, Qianqian Du Jul 2021

Economically Optimal Nitrogen Side-Dressing Based On Vegetation Indices From Satellite Images Through On-Farm Experiments, Qianqian Du

Department of Agricultural Economics: Dissertations, Theses, and Student Research

Optimal N fertilizer rates for corn (Zea mays L.) vary substantially within and among fields, and by corn growth stages. Improving N side-dressing management can improve fertilizer use efficiency, farmers’ profitability, and the sustainability of crop production. The objective of this study is to introduce a framework along with a methodology that can find the site-specific economically optimal N rates (EONRs) within one field for a particular growing season. An on-farm experiment was conducted in the 2019 corn growing season. A base N rate was applied uniformly on the field. NDRE images from the Sentinel-2 satellite were observed during …


The R Journal (June 2021) 13(1): Complete Issue, The R Foundation Jun 2021

The R Journal (June 2021) 13(1): Complete Issue, The R Foundation

The R Journal

Editorial, Dianne Cook

Contributed Research Articles

SEEDCCA: An Integrated R-Package for Canonical Correlation Analysis and Partial Least Squares, Bo-Young Kim, Yunju Im, and Jae Keun Yoo

npcure: An R Package for Nonparametric Inference in Mixture Cure Models, Ana López-Cheda, M. Amalia Jácome, and Ignacio López-de-Ullibarri

A Method for Deriving Information from Running R Code, Mark P. J. van der Loo

JMcmprsk: An R Package for Joint Modelling of Longitudinal and Survival Data with Competing Risks, Hong Wang, Ning Li, Shanpeng Li, and Gang Li

Wide-to-tall Data Reshaping Using Regular Expressions and the nc Package, Toby Dylan Hocking

Linear Regression with …


Analyzing Dependence Between Point Processes In Time Using Indtestpp, Ana C. Cebrián, Jesús Asín Jun 2021

Analyzing Dependence Between Point Processes In Time Using Indtestpp, Ana C. Cebrián, Jesús Asín

The R Journal

The need to analyze the dependence between two or more point processes in time appears in many modeling problems related to the occurrence of events, such as the occurrence of climate events at different spatial locations or synchrony detection in spike train analysis. The package IndTestPP provides a general framework for all the steps in this type of analysis, and one of its main features is the implementation of three families of tests to study independence given the intensities of the processes, which are not only useful to assess independence but also to identify factors causing dependence. The package also …


Distr6: R6 Object-Oriented Probability Distributions Interface In R, Raphael Sonabend, Franz J. Király Jun 2021

Distr6: R6 Object-Oriented Probability Distributions Interface In R, Raphael Sonabend, Franz J. Király

The R Journal

distr6 is an object-oriented (OO) probability distributions interface leveraging the extensibility and scalability of R6 and the speed and efficiency of Rcpp. Over 50 probability distributions are currently implemented in the package with ‘core’ methods, including density, distribution, and generating functions, and more ‘exotic’ ones, including hazards and distribution function anti-derivatives. In addition to simple distributions, distr6 supports compositions such as truncation, mixtures, and product distributions. This paper presents the core functionality of the package and demonstrates examples for key use-cases. In addition, this paper provides a critical review of the object-oriented programming paradigms in R and describes some …


Krippendorffsalpha: An R Package For Measuring Agreement Using Krippendorff's Alpha Coefficient, John Hughes Jun 2021

Krippendorffsalpha: An R Package For Measuring Agreement Using Krippendorff's Alpha Coefficient, John Hughes

The R Journal

R package krippendorffsalpha provides tools for measuring agreement using Krippendorff’s α coefficient, a well-known nonparametric measure of agreement (also called inter-rater reliability and various other names). This article first develops Krippendorff’s α in a natural way and situates α among statistical procedures. Then, the usage of package krippendorffsalpha is illustrated via analyses of two datasets, the latter of which was collected during an imaging study of hip cartilage. The package permits users to apply the α methodology using built-in distance functions for the nominal, ordinal, interval, or ratio levels of measurement. User-defined distance functions are also supported. The fitting function …


The R Package Smicd: Statistical Methods For Interval-Censored Data, Paul Walter Jun 2021

The R Package Smicd: Statistical Methods For Interval-Censored Data, Paul Walter

The R Journal

The package allows the use of two new statistical methods for the analysis of intervalcensored data: 1) direct estimation/prediction of statistical indicators and 2) linear (mixed) regression analysis. Direct estimation of statistical indicators, for instance, poverty and inequality indicators, is facilitated by a non parametric kernel density algorithm. The algorithm is able to account for weights in the estimation of statistical indicators. The standard errors of the statistical indicators are estimated with a non parametric bootstrap. Furthermore, the package offers statistical methods for the estimation of linear and linear mixed regression models with an interval-censored dependent variable, particularly random slope …


Finding Optimal Normalizing Transformations Via Bestnormalize, Ryan A. Peterson Jun 2021

Finding Optimal Normalizing Transformations Via Bestnormalize, Ryan A. Peterson

The R Journal

The bestNormalize R package was designed to help users find a transformation that can effectively normalize a vector regardless of its actual distribution. Each of the many normalization techniques that have been developed has its own strengths and weaknesses, and deciding which to use until data are fully observed is difficult or impossible. This package facilitates choosing between a range of possible transformations and will automatically return the best one, i.e., the one that makes data look the most normal. To evaluate and compare the normalization efficacy across a suite of possible transformations, we developed a statistic based on a …


Robustness In Network (Robin): An R Package For Comparison And Validation Of Communities, Valeria Policastro, Dario Righelli, Annamaria Carissimo, Luisa Cutillo, Italia De Feis Jun 2021

Robustness In Network (Robin): An R Package For Comparison And Validation Of Communities, Valeria Policastro, Dario Righelli, Annamaria Carissimo, Luisa Cutillo, Italia De Feis

The R Journal

In network analysis, many community detection algorithms have been developed. However, their implementation leaves unaddressed the question of the statistical validation of the results. Here, we present robin (ROBustness In Network), an R package to assess the robustness of the community structure of a network found by one or more methods to give indications about their reliability. The procedure initially detects if the community structure found by a set of algorithms is statistically significant and then compares two selected detection algorithms on the same graph to choose the one that better fits the network of interest. We demonstrate the use …


Indexnumber: An R Package For Measuring The Evolution Of Magnitudes, Alejandro Saavedra-Nieves, Paula Saavedra-Nieves Jun 2021

Indexnumber: An R Package For Measuring The Evolution Of Magnitudes, Alejandro Saavedra-Nieves, Paula Saavedra-Nieves

The R Journal

Index numbers are descriptive statistical measures useful in economic settings for comparing simple and complex magnitudes registered, usually in two time periods. Although this theory has a large history, it still plays an important role in modern today’s societies where big amounts of economic data are available and need to be analyzed. After a detailed revision on classical index numbers in literature, this paper is focused on the description of the R package IndexNumber with strong capabilities for calculating them. Two of the four real data sets contained in this library are used for illustrating the determination of the index …


Pdynmc: A Package For Estimating Linear Dynamic Panel Data Models Based On Nonlinear Moment Conditions, Markus Fritsch, Andrew Adrian Yu Pua, Joachim Schnurbus Jun 2021

Pdynmc: A Package For Estimating Linear Dynamic Panel Data Models Based On Nonlinear Moment Conditions, Markus Fritsch, Andrew Adrian Yu Pua, Joachim Schnurbus

The R Journal

This paper introduces pdynmc, an R package that provides users sufficient flexibility and precise control over the estimation and inference in linear dynamic panel data models. The package primarily allows for the inclusion of nonlinear moment conditions and the use of iterated GMM; additionally, visualizations for data structure and estimation results are provided. The current implementation reflects recent developments in literature, uses sensible argument defaults, and aligns commercial and noncommercial estimation commands. Since the understanding of the model assumptions is vital for setting up plausible estimation routines, we provide a broad introduction of linear dynamic panel data models directed towards …


Benchmarking R Packages For Calculation Of Persistent Homology, Eashwar V. Somasundaram, Shael E. Brown, Adam Litzler, Jacob G. Scott, Raoul R. Wadhwa Jun 2021

Benchmarking R Packages For Calculation Of Persistent Homology, Eashwar V. Somasundaram, Shael E. Brown, Adam Litzler, Jacob G. Scott, Raoul R. Wadhwa

The R Journal

Several persistent homology software libraries have been implemented in R. Specifically, the Dionysus, GUDHI, and Ripser libraries have been wrapped by the TDA and TDAstats CRAN packages. These software represent powerful analysis tools that are computationally expensive and, to our knowledge, have not been formally benchmarked. Here, we analyze runtime and memory growth for the 2 R packages and the 3 underlying libraries. We find that datasets with less than 3 dimensions can be evaluated with persistent homology fastest by the GUDHI library in the TDA package. For higher-dimensional datasets, the Ripser library in the TDAstats package is the fastest. …


Unidimensional And Multidimensional Methods For Recurrence Quantification Analysis With Crqa, Moreno I. Coco, Dan Mønster, Giuseppe Leonardi, Rick Dale, Sebastian Wallot Jun 2021

Unidimensional And Multidimensional Methods For Recurrence Quantification Analysis With Crqa, Moreno I. Coco, Dan Mønster, Giuseppe Leonardi, Rick Dale, Sebastian Wallot

The R Journal

Recurrence quantification analysis is a widely used method for characterizing patterns in time series. This article presents a comprehensive survey for conducting a wide range of recurrence-based analyses to quantify the dynamical structure of single and multivariate time series and capture coupling properties underlying leader-follower relationships. The basics of recurrence quantification analysis (RQA) and all its variants are formally introduced step-by-step from the simplest auto-recurrence to the most advanced multivariate case. Importantly, we show how such RQA methods can be deployed under a single computational framework in R using a substantially renewed version of our crqa 2.0 package. This package …


The Bdpar Package: Big Data Pipelining Architecture For R, Miguel Ferreiro-Díaz, Tomás R. Cotos-Yáñez, José R. Méndez, David Ruano-Ordás Jun 2021

The Bdpar Package: Big Data Pipelining Architecture For R, Miguel Ferreiro-Díaz, Tomás R. Cotos-Yáñez, José R. Méndez, David Ruano-Ordás

The R Journal

In the last years, big data has become a useful paradigm for taking advantage of multiple sources to find relevant knowledge in real domains (such as the design of personalized marketing campaigns or helping to palliate the effects of several fatal diseases). Big data programming tools and methods have evolved over time from a MapReduce to a pipeline-based archetype. Concretely the use of pipelining schemes has become the most reliable way of processing and analyzing large amounts of data. To this end, this work introduces bdpar, a new highly customizable pipeline-based framework (using the OOP paradigm provided by R6 …


Exprior: An R Package For The Formulation Of Ex-Situ Priors, Falk Heße, Karina Cucchi, Nura Kawa, Yoram Rubin Jun 2021

Exprior: An R Package For The Formulation Of Ex-Situ Priors, Falk Heße, Karina Cucchi, Nura Kawa, Yoram Rubin

The R Journal

The exPrior package implements a procedure for formulating informative priors of geostatistical properties for a target field site, called ex-situ priors and introduced in Cucchi et al. (2019). The procedure uses a Bayesian hierarchical model to assimilate multiple types of data coming from multiple sites considered as similar to the target site. This prior summarizes the information contained in the data in the form of a probability density function that can be used to better inform further geostatistical investigations at the site. The formulation of the prior uses ex-situ data, where the data set can either be gathered by the …


Linear Regression With Stationary Errors: The R Package Slm, Emmanuel Caron, Jérôme Dedecker, Bertrand Michel Jun 2021

Linear Regression With Stationary Errors: The R Package Slm, Emmanuel Caron, Jérôme Dedecker, Bertrand Michel

The R Journal

This paper introduces the R package slm, which stands for Stationary Linear Models. The package contains a set of statistical procedures for linear regression in the general context where the error process is strictly stationary with a short memory. We work in the setting of Hannan (1973), who proved the asymptotic normality of the (normalized) least squares estimators (LSE) under very mild conditions on the error process. We propose different ways to estimate the asymptotic covariance matrix of the LSE and then to correct the type I error rates of the usual tests on the parameters (as well as confidence …


A Method For Deriving Information From Running R Code, Mark P. J. Van Der Loo Jun 2021

A Method For Deriving Information From Running R Code, Mark P. J. Van Der Loo

The R Journal

It is often useful to tap information from a running R script. Obvious use cases include monitoring the consumption of resources (time, memory) and logging. Perhaps less obvious cases include tracking changes in R objects or collecting the output of unit tests. In this paper, we demonstrate an approach that abstracts the collection and processing of such secondary information from the running R script. Our approach is based on a combination of three elements. The first element is to build a customized way to evaluate code. The second is labeled local masking and it involves temporarily masking a user-facing function …


Npcure: An R Package For Nonparametric Inference In Mixture Cure Models, Ana López-Cheda, M Amalia Jácome, Ignacio López-De-Ullibarri Jun 2021

Npcure: An R Package For Nonparametric Inference In Mixture Cure Models, Ana López-Cheda, M Amalia Jácome, Ignacio López-De-Ullibarri

The R Journal

Mixture cure models have been widely used to analyze survival data with a cure fraction. They assume that a subgroup of the individuals under study will never experience the event (cured subjects). So, the goal is twofold: to study both the cure probability and the failure time of the uncured individuals through a proper survival function (latency). The R package npcure implements a completely nonparametric approach for estimating these functions in mixture cure models, considering right-censored survival times. Nonparametric estimators for the cure probability and the latency as functions of a covariate are provided. Bootstrap bandwidth selectors for the estimators …


Seedcca: An Integrated R-Package For Canonical Correlation Analysis And Partial Least Squares, Bo-Young Kim, Yunju Im, Jae Keun Yoo Jun 2021

Seedcca: An Integrated R-Package For Canonical Correlation Analysis And Partial Least Squares, Bo-Young Kim, Yunju Im, Jae Keun Yoo

The R Journal

Canonical correlation analysis (CCA) has a long history as an explanatory statistical method in high-dimensional data analysis and has been successfully applied in many scientific fields such as chemometrics, pattern recognition, genomic sequence analysis, and so on. The so-called seedCCA is a newly developed R package that implements not only the standard and seeded CCA but also partial least squares. The package enables us to fit CCA to large-p and small-n data. The paper provides a complete guide. Also, the seeded CCA application results are compared with the regularized CCA in the existing R package. It is believed that the …