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 25 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

sitmo  
Parallel Pseudo Random Number Generator (PPRNG) 'sitmo' Header Files
Provided within are two high quality and fast PPRNGs that may be used in an 'OpenMP' parallel enviro ...
Download / Learn more Package Citations See dependency  
foster  
Forest Structure Extrapolation with R
Set of tools to streamline the modeling of the relationship betweensatellite imagery time series or ...
Download / Learn more Package Citations See dependency  
airGRiwrm  
'airGR' Integrated Water Resource Management
Semi-distributed Precipitation-Runoff Modelling based on 'airGR' package models integrating human i ...
Download / Learn more Package Citations See dependency  
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  
edeaR  
Exploratory and Descriptive Event-Based Data Analysis
Exploratory and descriptive analysis of event based data. Provides methods for describing and select ...
Download / Learn more Package Citations See dependency  

27,535

R Packages

236,180

Dependencies

73,223

Author Associations

27,536

Publication Badges

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