Description Usage Arguments Details Value References See Also Examples
View source: R/dataGeneration.R
Allows for easy generation of data containing covariance changepoints as described in \insertCiteRyan2020;textualchangepoint.cov
1 2 3 4 5 6 7 8 | wishartDataGeneration(
n,
p,
tau = c(1, n),
Sigma = list(NA),
shape = 5,
scale = 1/5
)
|
n |
Number of time points. |
p |
Dimension of the time series. |
tau |
Vector of changepoint locations. |
Sigma |
List of segment covariances. Defaults to automatic generation. |
shape |
Shape parameter for generation of eigenvalues in transition matrix. Only used with automatic generation of segment covariances. |
scale |
Scale parameter for generation of eigenvalues in transition matrix. Only used with automatic generation of segment covariances. |
This function generates data that contain changes in covariance. If the covariance for each segment, Sigma, is given then data is generated from a $N(0,Sigma)$ for each segment. If the segment covariance aren't given then they are generated via simulating from Wishart distribution.
List with elements:
data Matrix of generated data with dimension n by p.
cpts Location of the changepoints.
Sigma List of covariance matrices of each segment.
Ryan2020changepoint.cov
cptCov
, subspaceDataGeneration
1 2 3 4 5 | set.seed(1)
dataObject <- wishartDataGeneration(n=100,p=4,tau=40)
dim(dataObject$data)
dataObject$cpts
dataObject$Sigma
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.