[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: new to octave, confused about load(), dlmread et cetera
From: |
CdeMills |
Subject: |
Re: new to octave, confused about load(), dlmread et cetera |
Date: |
Tue, 31 Aug 2010 12:16:04 -0700 (PDT) |
justin.cress wrote:
>
> thanks for all the responses everyone, and, I think the general theme is
> correct, I was trying to use octave too much like stata...
>
> So, if I don't know exactly which order the columns are in (in the data)
> is
> there an easy way to let
>
> Y = load ( .. args ..) be a Y var
>
> and grab a matrix of X vars like
>
> X = load ( ... args ..)
>
> I guess my question is, if i just wanted to do basic OLS (or something
> similar) in octave, what's the general approach?
>
Octave is mostly used by engineers, so is more oriented towards numerical
computations, linear algebra, signal processing and the like.
Regarding the problem of identifying columns from their name, this is the
purpose of the 'dataframe' package I mentionned, which is similar to R
data.frame.
About OLS, let say that A is your design matrix, X your unknown and B your
observations,
you have to solve Ax = B
which can be computed as x = A\B
The '\' is a specific operator, and can detect cases of undetermined / badly
scaled systems.
Regards
Pascal
--
View this message in context:
http://octave.1599824.n4.nabble.com/new-to-octave-confused-about-load-dlmread-et-cetera-tp2400902p2402161.html
Sent from the Octave - General mailing list archive at Nabble.com.
- new to octave, confused about load(), dlmread et cetera, justin.cress, 2010/08/30
- Re: new to octave, confused about load(), dlmread et cetera, forkandwait, 2010/08/31
- Re: new to octave, confused about load(), dlmread et cetera, Jaroslav Hajek, 2010/08/31
- Re: new to octave, confused about load(), dlmread et cetera, forkandwait, 2010/08/31
- Re: new to octave, confused about load(), dlmread et cetera, Andy Buckle, 2010/08/31