| PPC | R Documentation |
Projection-based Perturbation Principal Component Analysis
PPC(data, m)
data |
is a total data set. |
m |
is the number of principal component |
Apro, Dpro, Sigmahatpro
library(copula)
library(MASS)
n=1000
p=10
m=5
mu=t(matrix(rep(runif(p,0,n),n),p,n))
mu0=as.matrix(runif(m,0))
sigma0=diag(runif(m,1))
F=matrix(mvrnorm(n,mu0,sigma0),nrow=n)
A=matrix(runif(p*m,-1,1),nrow=p)
D=as.matrix(diag(rep(runif(p,0,1))))
theta = 2.0
clayton.cop <- claytonCopula(param = theta, dim = p)
U_clayton <- rCopula(n, clayton.cop)
epsilon_clayton <- qnorm(U_clayton)
data=mu+F%*%t(A)+epsilon_clayton
PPC(data=data,m=5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.