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

Programming Languages and Compilers

Institution
Keyword
Publication Year
Publication
Publication Type
File Type

Articles 61 - 90 of 773

Full-Text Articles in Numerical Analysis and Scientific Computing

Spnetwork: A Package For Network Kernel Density Estimation, Jeremy Gelb Dec 2021

Spnetwork: A Package For Network Kernel Density Estimation, Jeremy Gelb

The R Journal

This paper introduces the new package spNetwork that provides functions to perform Network Kernel Density Estimate analysis (NKDE). This method is an extension of the classical Kernel Density Estimate (KDE), a non parametric approach to estimate the intensity of a spatial process. More specifically, it adapts the KDE for cases when the study area is a network, constraining the location of events (such as accidents on roads, leaks in pipes, fish in rivers, etc.). We present and discuss in this paper the three main versions of NKDE: simple, discontinuous, and continuous that are implemented in spNetwork. We illustrate how to …


Spfilter: An R Package For Semiparametric Spatial Filtering With Eigenvectors In (Generalized) Linear Models, Sebastian Juhl Dec 2021

Spfilter: An R Package For Semiparametric Spatial Filtering With Eigenvectors In (Generalized) Linear Models, Sebastian Juhl

The R Journal

Eigenvector-based Spatial filtering constitutes a highly flexible semiparametric approach to account for spatial autocorrelation in a regression framework. It combines judiciously selected eigenvectors from a transformed connectivity matrix to construct a synthetic spatial filter and remove spatial patterns from model residuals. This article introduces the spfilteR package that provides several useful and flexible tools to estimate spatially filtered linear and generalized linear models in R. While the package features functions to identify relevant eigenvectors based on different selection criteria in an unsupervised fashion, it also helps users to perform supervised spatial filtering and to select eigenvectors based on alternative user-defined …


Siqr: An R Package For Single-Index Quantile Regression, Tianhai Zu, Yan Yu Dec 2021

Siqr: An R Package For Single-Index Quantile Regression, Tianhai Zu, Yan Yu

The R Journal

We develop an R package SIQR that implements the single-index quantile regression (SIQR) models via an efficient iterative local linear approach in Wu et al. (2010). Single-index quantile regression models are important tools in semiparametric regression to provide a comprehensive view of the conditional distributions of a response variable. It is especially useful when the data is heterogeneous or heavy-tailed. The package provides functions that allow users to fit SIQR models, predict, provide standard errors of the single-index coefficients via bootstrap, and visualize the estimated univariate function. We apply the R package SIQR to a well-known Boston Housing data.


Multiple Imputation And Synthetic Data Generation With Npbayesimputecat, Jingchen Hu, Olanrewaju Akande, Quanli Wang Dec 2021

Multiple Imputation And Synthetic Data Generation With Npbayesimputecat, Jingchen Hu, Olanrewaju Akande, Quanli Wang

The R Journal

In many contexts, missing data and disclosure control are ubiquitous and challenging issues. In particular, at statistical agencies, the respondent-level data they collect from surveys and censuses can suffer from high rates of missingness. Furthermore, agencies are obliged to protect respondents’ privacy when publishing the collected data for public use. The NPBayesImputeCat R package, introduced in this paper, provides routines to i) create multiple imputations for missing data and ii) create synthetic data for statistical disclosure control, for multivariate categorical data, with or without structural zeros. We describe the Dirichlet process mixture of products of the multinomial distributions model used …


Mirecsurv Package: Prentice-Williams-Peterson Models With Multiple Imputation Of Unknown Number Of Previous Episodes, David Moriña, Gilma Hernández-Herrera, Albert Navarro Dec 2021

Mirecsurv Package: Prentice-Williams-Peterson Models With Multiple Imputation Of Unknown Number Of Previous Episodes, David Moriña, Gilma Hernández-Herrera, Albert Navarro

The R Journal

Left censoring can occur with relative frequency when analyzing recurrent events in epidemiological studies, especially observational ones. Concretely, the inclusion of individuals that were already at risk before the effective initiation in a cohort study may cause the unawareness of prior episodes that have already been experienced, and this will easily lead to biased and inefficient estimates. The miRecSurv package is based on the use of models with specific baseline hazard, with multiple imputation of the number of prior episodes when unknown by means of the COMPoisson distribution, a very flexible count distribution that can handle over, sub, and equidispersion, …


Bcmixed: A Package For Median Inference On Longitudinal Data With The Box–Cox Transformation, Kazushi Maruo, Ryota Ishii, Yusuke Yamaguchi, Masahiko Gosho Dec 2021

Bcmixed: A Package For Median Inference On Longitudinal Data With The Box–Cox Transformation, Kazushi Maruo, Ryota Ishii, Yusuke Yamaguchi, Masahiko Gosho

The R Journal

This article illustrates the use of the bcmixed package and focuses on the two main functions: bcmarg and bcmmrm. The bcmarg function provides inference results for a marginal model of a mixed effect model using the Box–Cox transformation. The bcmmrm function provides model median inferences based on the mixed effect models for repeated measures analysis using the Box–Cox transformation for longitudinal randomized clinical trials. Using the bcmmrm function, analysis results with high power and high interpretability for treatment effects can be obtained for longitudinal randomized clinical trials with skewed outcomes. Further, the bcmixed package provides summarizing and visualization tools, which …


R Foundation News, Torsten Hothorn Dec 2021

R Foundation News, Torsten Hothorn

The R Journal

Membership fees and donations received between 2021-07-06 and 2021-12-22.

Donations

Jordan Aharoni (Canada) b-data GmbH (Switzerland) Mark Cachia (Canada) Shalese Fitzgerald (United States) Knut Helge Jensen (Norway) Roger Koenker (United Kingdom) Merck Research Laboratories, Kenilwort (United States) Statistik Aargau, Aarau (Switzerland)


Mgee2: An R Package For Marginal Analysis Of Longitudinal Ordinal Data With Misclassified Responses And Covariates, Yuliang Xu, Shuo Shuo Liu, Grace Y. Yi Dec 2021

Mgee2: An R Package For Marginal Analysis Of Longitudinal Ordinal Data With Misclassified Responses And Covariates, Yuliang Xu, Shuo Shuo Liu, Grace Y. Yi

The R Journal

Marginal methods have been widely used for analyzing longitudinal ordinal data due to their simplicity in model assumptions, robustness in inference results, and easiness in the implementation. However, they are often inapplicable in the presence of measurement errors in the variables. Under the setup of longitudinal studies with ordinal responses and covariates subject to misclassification, Chen et al. (2014) developed marginal methods for misclassification adjustments using the second-order estimating equations and proposed a two-stage estimation approach when the validation subsample is available. Parameter estimation is conducted through the Newton-Raphson algorithm, and the asymptotic distribution of the estimators is established. While …


Survidm: An R Package For Inference And Prediction In An Illness-Death Model, Gustavo Soutinho, Marta Sestelo, Luís Meira-Machado Dec 2021

Survidm: An R Package For Inference And Prediction In An Illness-Death Model, Gustavo Soutinho, Marta Sestelo, Luís Meira-Machado

The R Journal

Multi-state models are a useful way of describing a process in which an individual moves through a number of finite states in continuous time. The illness-death model plays a central role in the theory and practice of these models, describing the dynamics of healthy subjects who may move to an intermediate "diseased" state before entering into a terminal absorbing state. In these models, one important goal is the modeling of transition rates which is usually done by studying the relationship between covariates and disease evolution. However, biomedical researchers are also interested in reporting other interpretable results in a simple and …


Lg: An R Package For Local Gaussian Approximations, Håkon Otneim Dec 2021

Lg: An R Package For Local Gaussian Approximations, Håkon Otneim

The R Journal

The package lg for the R programming language provides implementations of recent methodological advances on applications of the local Gaussian correlation. This includes the estimation of the local Gaussian correlation itself, multivariate density estimation, conditional density estimation, various tests for independence and conditional independence, as well as a graphical module for creating dependence maps. This paper describes the lg package, its principles, and its practical use.


Analysis Of Corneal Data In R With The Rpaci Package, Darío Ramos-López, Ana D. Maldonado Dec 2021

Analysis Of Corneal Data In R With The Rpaci Package, Darío Ramos-López, Ana D. Maldonado

The R Journal

In ophthalmology, the early detection of keratoconus is still a crucial problem. Placido disk corneal topographers are essential in clinical practice, and many indices for diagnosing corneal irregularities exist. The main goal of this work is to present the R package rPACI, providing several functions to handle and analyze corneal data. This package implements primary indices of corneal irregularity (based on geometrical properties) and compound indices built from the primary ones, either using a generalized linear model or as a Bayesian classifier using a hybrid Bayesian network and performing approximate inference. rPACI aims to make the analysis of corneal …


News From The Forwards Taskforce, Heather Turner Dec 2021

News From The Forwards Taskforce, Heather Turner

The R Journal

Forwards is an R Foundation taskforce working to widen the participation of underrepresented 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 2022.


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, …


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 …


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 …