<< outlier (X) One matrix of observations/variables pcana >>

fact >> (X) One matrix of observations/variables > pcaapply

pcaapply

applies a PCA model, calculated with a first dataset, to a second dataset

Calling sequence

xscores=pcaapply(model,x,(dim))

Arguments

model:

a model obtained by a PCA calculated for a first dataset

x :

a new dataset; x or x.d is a matrix (n x p)

(dim):

the number of eigenvectors (by default: p)

xscores:

the scores of the observations of x, according to the eigenvectors of model

xscores.d is a matrix (n x p) by default, and (n x dim) if dim is given

Examples

[scores_xtest]=pcaapply(model1,xtest)
[scores_xtest]=pcaapply(model1,xtest,12)

Authors


Report an issue
<< outlier (X) One matrix of observations/variables pcana >>