Learn R Programming

FPCdpca (version 0.4.0)

Drpca: Distributed random PCA

Description

Distributed random PCA

Usage

Drpca(data,K, nk,d)

Value

MSEXrp, MSEvrp, kSopt, kxopt

Arguments

data

is sparse random projection matrix

K

is the number of distributed nodes.

nk

is the size of subsets.

d

is the dimension number. n is the sample size. p the number of variables.

Examples

Run this code
K=20; nk=50; nr=50; p=8;d=5; n=K*nk;
data=matrix(c(rnorm((n-nr)*p,0,1),rpois(nr*p,100)),ncol=p)

Run the code above in your browser using DataLab