Re: [R] Finding a basis in a set of vectors

2009-02-06 Thread Peter Dalgaard
Zhou Fang wrote: Ah ha, that does work. What do you mean it isn't robust, though? I mean, obviously linear dependency structures in general are not stable under small perturbations...? Or is it that it's platform dependent? The former. In particular there is an issue with columns that have al

Re: [R] Finding a basis in a set of vectors

2009-02-06 Thread Zhou Fang
Ah ha, that does work. What do you mean it isn't robust, though? I mean, obviously linear dependency structures in general are not stable under small perturbations...? Or is it that it's platform dependent? Zhou On Fri, Feb 6, 2009 at 2:28 PM, Peter Dalgaard wrote: > Zhou Fang wrote: >> Hi, >>

Re: [R] Finding a basis in a set of vectors

2009-02-06 Thread Peter Dalgaard
Zhou Fang wrote: > Hi, > > Okay, I have a n x p matrix X, which I know is not full rank. In > particular, there may be linear dependencies amongst the columns (but > not that many). What is a fast way of finding a linearly independent > subset of the columns of X that will span the column space of

[R] Finding a basis in a set of vectors

2009-02-06 Thread Zhou Fang
Hi, Okay, I have a n x p matrix X, which I know is not full rank. In particular, there may be linear dependencies amongst the columns (but not that many). What is a fast way of finding a linearly independent subset of the columns of X that will span the column space of X, in R? If it helps, I have