Skip to content

nipals in the chemometrics package in R

8 messages · Bryan Hanson, Jeff Newmiller, Pedro Mardones +1 more

#
Hello
i need some precision about nipals in the chemometrics package in R .

When i use nipals in chemometrics i obtain T and P matrix.

I really don't understand what to do with these two matrix to obtain
the scores for every the component (like in spss fo example)

             Comp1    Comp2   Comp3
quest1 0,8434      0,54333   0,3466
quest2 0,665       0,7655      0,433

Thank you very much for your help
(I know that X=TP+E)... But don't understand else....
#
zz dd:

If you want a typical score plot, say PC1 vs PC2, then plot the first and second columns of your score matrix (T) against each other and label the points with the row names (if available) or create a text label from where ever you have this information stored.  To get an unlabeled score plot, you could simply do:

plot(T[,1], T[,2])

If you are using the package chemometrics, you should take a look at the book that goes with it too: Varmuza and Filzmoser, "Multivariate Statistical Analysis in Chemometrics".

If you need more guidance than this, you should probably give us more details about what you are doing.

Bryan
****************
Prof. Bryan Hanson
Dept of Chemistry & Biochemistry
DePauw University
Greencastle IN 46135 USA
academic.depauw.edu/~hanson/deadpezsociety.html
github.com/bryanhanson
academic.depauw.edu/~hanson/UMP/Index.html
On Dec 1, 2011, at 6:51 AM, zz dd wrote:

            
3 days later
#
This is not a homework help list.
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<jdnewmil at dcn.davis.ca.us>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
--------------------------------------------------------------------------- 
Sent from my phone. Please excuse my brevity.
zz dd <void1999 at gmail.com> wrote:

            
#
Perhaps you can try the examples given in
http://www.jstatsoft.org/v18/i02 for getting a better idea about how
the NIPALS algorithm works. BTW, yes,it looks like a homework question
specially when your user name is "zz dd <void1999 at gmail.com>" so you
can't be recognized.
On Mon, Dec 5, 2011 at 9:27 AM, zz dd <void1999 at gmail.com> wrote: