The hardware and bandwidth for this mirror is donated by dogado GmbH, the Webhosting and Full Service-Cloud Provider. Check out our Wordpress Tutorial.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]dogado.de.
This package transforms or simulates data with a target empirical covariance matrix supplied by the user. The details to obtain such data can be found in Christidis, Van Aelst and Zamar (2019) (https://arxiv.org/abs/1812.05678).
You can install the stable version on R CRAN.
install.packages("simTargetCov", dependencies = TRUE)
You can install the development version from GitHub.
library(devtools)
::install_github("AnthonyChristidis/simTargetCov") devtools
# Function to create target covariance matrix with kernel set to r
<- function(r, p){
target_cor <- diag(p)
Gamma for(i in 1:(p-1)){
for(j in (i+1):p){
<- Gamma[j,i] <- r^(abs(i-j))
Gamma[i,j]
}
}return(Gamma)
}
# Transformation of data to target empirical covariance
<- simTargetCov(X = MASS::mvrnorm(30, mu = rep(0,6),
dat.target.cov Sigma = target_cor(0.5,6)),
target = target_cor(0.5,6))
round(cov(dat.target.cov), 2)
# Simulation of data with target empirical covariance
<- simTargetCov(n = 30, p = 6, target = target_cor(0.5,6))
sim.target.cov round(cov(sim.target.cov), 2)
This package is free and open source software, licensed under GPL (>= 2).
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.