|
From: | Thomas Grzybowski |
Subject: | regress vs polyfit |
Date: | Mon, 20 Jun 2011 07:45:34 -0400 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 |
Hi:I am new to octave and want to fit a single regression line to some data. I have been using polyfit, and was looking at regress, but I find regress confusing. From the regress "Help":
* `X' is a matrix of regressors, with the first column filled with the constant value 1
I do not understand the help instructions. My data is simply x,y pairs - what is this help about - "the constant value 1" ?
Thanks, Thomas Grzybowski
[Prev in Thread] | Current Thread | [Next in Thread] |