powered by
Compute the sample constrained correlation matrices
SCCor(rt,end,span,grp)
A T-by-k data matrix of a k-dimensional time series
The time index of the last data point to be used in computing the sample correlations.
The size of the data span used to compute the correlations.
A vector of group sizes. The time series in the same group are pooled to compute the correlation matrix.
Un-constrained sample correlation matrix
Constrained sample correlation matrix
# NOT RUN { rt=matrix(rnorm(1000),200,5) grp=c(3,2) m1=SCCor(rt,200,200,grp) m1$unconCor m1$conCor # }
Run the code above in your browser using DataLab