4
$\begingroup$

I am looking for a R package that implements Incremental PCA (online version of PCA)

Is there anybody that knows a piece of code that implements such algorithm?

$\endgroup$
1
$\begingroup$

I have been searching for a solution to a related problem a while back

So, in essence, you want an implementation of an online algorithm to carry QR decomposition of a rank $p$ matrix $A$ (or equivalently to do a series of rank one update to the QR decomposition of $A$).

A function to do rank one update to a QR decomposition is well implemented in matlab, but inexplicably, does not seem to exist in R.

Fortunatly, there is an implementation of this function in Octave under the name qrupdate(Q,R,u,v). From there, you can call any Octave function from within R using the RcppOctave bridging package.

$\endgroup$
0
$\begingroup$

A quick search on http://rseek.org leads to the LPcaML function from the modelcf package. I'm not sure if this is exactly what you want, but it should get you started.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.