nipals | Principal Component Analysis with missing data using NIPALS | Development Tools library
kandi X-RAY | nipals Summary
kandi X-RAY | nipals Summary
The nipals package provides two functions to perform Principal Components Analysis of a matrix. (1) The nipals function uses Non-linear Iterative Partial Least Squares. (2) The empca function uses EM PCA. NIPALS has been implemented several times in R packages. EMPCA has previously appeared in python, but is available in R here for the first time. This package strives to have the best (fast and accurate) R implementations. The empca() function should be considered experimental. There is a problem using empca() on matrices that are both (1) non-full rank (2) have missing values.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nipals
nipals Key Features
nipals Examples and Code Snippets
Community Discussions
Trending Discussions on nipals
QUESTION
I usually perform Principal Component Analyses with the prcomp
function, and plot the results in a fancy way with ggbiplot
(or otherwise just with ggplot2
extracting pca.obj$x
).
Like this:
...ANSWER
Answered 2018-Apr-12 at 04:53First of all, good job finding a PCA package that will handle NAs.
Since ggbiplot
will not accept pcaRes
objects, we can use the data obtained by the pcaRes
and sneak it into the original prcomp
object.
Obviously your real data will already contain the NA
values, so we'll start with that data set and swap them out for some dummy values to allow us to run the first prcomp
pca
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nipals
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page