s-news
[Top] [All Lists]

Rescaling rows of a matrix

To: S-news <s-news@lists.biostat.wustl.edu>
Subject: Rescaling rows of a matrix
From: "Walter R. Paczkowski" <dataanalytics@earthlink.net>
Date: Wed, 22 Sep 2004 10:49:09 -0500
User-agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (nscd2)
Hi,

I hope someone can help me.  I'm trying to do the following:

Let X be an Nxn matrix (n<N). The rows are people and the columns are their ratings on a product. I want to create a matrix Z by subtracting each person's mean from their row of X (I can do this using sweep) and then rescaling each row to have sum of squares of one. Then R = ZZ' is the NxN correlation matrix among the persons. The matrix Z will be used later for further analysis.

My question: how do I rescale X after sweeping out the means to create Z?

Thanks for any help.

Walt Paczkowski



<Prev in Thread] Current Thread [Next in Thread>