Other packages > Find by keyword >

randcorr  

Generate a Random p x p Correlation Matrix
View on CRAN: Click here


Download and install randcorr package within the R console
Install from CRAN:
install.packages("randcorr")

Install from Github:
library("remotes")
install_github("cran/randcorr")

Install by package version:
library("remotes")
install_version("randcorr", "1.0")



Attach the package and use:
library("randcorr")
Maintained by
Daniel F. Schmidt
[Scholar Profile | Author Map]
All associated links for this package
First Published: 2018-11-16
Latest Update: 2018-11-16
Description:
Implements the algorithm by Pourahmadi and Wang (2015) for generating a random p x p correlation matrix. Briefly, the idea is to represent the correlation matrix using Cholesky factorization and p(p-1)/2 hyperspherical coordinates (i.e., angles), sample the angles from a particular distribution and then convert to the standard correlation matrix form. The angles are sampled from a distribution with pdf proportional to sin^k(theta) (0 < theta < pi, k >= 1) using the efficient sampling algorithm described in Enes Makalic and Daniel F. Schmidt (2018) .
How to cite:
Daniel F. Schmidt (2018). randcorr: Generate a Random p x p Correlation Matrix. R package version 1.0, https://cran.r-project.org/web/packages/randcorr. Accessed 05 Jun. 2026.
Previous versions and publish date:
No previous versions
Other packages that cited randcorr R package
View randcorr citation profile
Other R packages that randcorr depends, imports, suggests or enhances
Complete documentation for randcorr
Functions, R codes and Examples using the randcorr R package
Some associated functions: randcorr-package . randcorr . randcorr.sample.sink . 
Some associated R codes: randcorr-package.R . randcorr.R .  Full randcorr package functions and examples
Downloads during the last 30 days

Today's Hot Picks in Authors and Packages

quickcode  
Quick and Essential 'R' Tricks for Better Scripts
The NOT functions, 'R' tricks and a compilation of some simple quick plus often used 'R' codes to im ...
Download / Learn more Package Citations See dependency  
msm  
Multi-State Markov and Hidden Markov Models in Continuous Time
Functions for fitting continuous-time Markov and hidden Markov multi-state models to longitudinal d ...
Download / Learn more Package Citations See dependency  
ibb  
R Wrapper for Istanbul Municipality Open Data Portal
Call wrappers for Istanbul Metropolitan Municipality's Open Data Portal (Turkish: Istanbul B ...
Download / Learn more Package Citations See dependency  
envirem  
Generation of ENVIREM Variables
Generation of bioclimatic rasters that are complementary to the typical 19 bioclim variables. ...
Download / Learn more Package Citations See dependency  
crossurr  
Cross-Fitting for Doubly Robust Evaluation of High-Dimensional Surrogate Markers
Doubly robust methods for evaluating surrogate markers as outlined in: Agniel D, Hejblum BP, Thiebau ...
Download / Learn more Package Citations See dependency  

27,268

R Packages

233,548

Dependencies

72,590

Author Associations

27,205

Publication Badges

© Copyright since 2022. All right reserved, rpkg.net.  Based in Cambridge, Massachusetts, USA