Description Usage Arguments Details Value Author(s) Examples
Predict data using PCA model
1 2 3 4 5 6 7 |
object |
|
newdata |
|
pcs |
|
pre |
pre-process |
post |
unpre-process the final data (add the center back etc) |
... |
Not passed on anywhere, included for S3 consistency. |
This function extracts the predict values from a pcaRes object for the PCA methods SVD, Nipals, PPCA and BPCA. Newdata is first centered if the PCA model was and then scores (T) and data (X) is 'predicted' according to : That=XnewP Xhat=ThatP'. Missing values are set to zero before matrix multiplication to achieve NIPALS like treatment of missing values.
A list with the following components:
scores |
The predicted scores |
x |
The predicted data |
Henning Redestig
1 2 3 4 5 6 |
Loading required package: Biobase
Loading required package: BiocGenerics
Loading required package: parallel
Attaching package: 'BiocGenerics'
The following objects are masked from 'package:parallel':
clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
clusterExport, clusterMap, parApply, parCapply, parLapply,
parLapplyLB, parRapply, parSapply, parSapplyLB
The following objects are masked from 'package:stats':
IQR, mad, sd, var, xtabs
The following objects are masked from 'package:base':
Filter, Find, Map, Position, Reduce, anyDuplicated, append,
as.data.frame, basename, cbind, colMeans, colSums, colnames,
dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
intersect, is.unsorted, lapply, lengths, mapply, match, mget,
order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
union, unique, unsplit, which, which.max, which.min
Welcome to Bioconductor
Vignettes contain introductory material; view with
'browseVignettes()'. To cite Bioconductor, see
'citation("Biobase")', and for packages 'citation("pkgname")'.
Attaching package: 'pcaMethods'
The following object is masked from 'package:stats':
loadings
[1] 0.9999995
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.