Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.GSO.4.21.0202191751130.26762-100000@dolphin>
Date: 2002-02-19T17:52:50Z
From: Simon Wood
Subject: Rank of Matrix
In-Reply-To: <MABBJPBLPNLDIFMIAAOJOEPECDAA.indra_calisto@yahoo.com>

> I think my question has been asked before but I am posing it once again
> since I need it. Is there any way to find the rank of a matrix in R or
> Splus?
Use svd() to get the singular values and count up how many are greater
than the machine precision multiplied by the largest singular value. 
Simon
  ______________________________________________________________________
> Simon Wood  snw at st-and.ac.uk  http://www.ruwpa.st-and.ac.uk/simon.html
> The Mathematical Institute, North Haugh, St. Andrews, Fife KY16 9SS UK
> Direct telephone: (0)1334 463799          Indirect fax: (0)1334 463748 


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._