Path: news.mathworks.com!newsfeed-00.mathworks.com!fu-berlin.de!news.uni-stuttgart.de!news.nask.pl!news.nask.org.pl!news.onet.pl!not-for-mail
From: Zebbik <zebik@op.pl>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Linear regression.
Date: Tue, 18 Mar 2008 14:04:06 +0000
Organization: Onet.pl
Lines: 26
Message-ID: <froi4p$e0s$2@news.onet.pl>
References: <fr9c9t$o1p$1@news.onet.pl> <frb897$m3l$1@fred.mathworks.com> <frbraa$3r1$1@news.onet.pl> <frbvdg$7t7$1@fred.mathworks.com> <frc046$k3v$1@fred.mathworks.com> <frdtl9$p9o$1@fred.mathworks.com>
NNTP-Posting-Host: acca5a67.ipt.aol.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.onet.pl 1205849050 14364 172.202.90.103 (18 Mar 2008 14:04:10 GMT)
X-Complaints-To: usenet@news.onet.pl
NNTP-Posting-Date: Tue, 18 Mar 2008 14:04:10 +0000 (UTC)
X-Sender: Bp2tzS8CFS8FGDaD6qs7Hg==
In-Reply-To: <frdtl9$p9o$1@fred.mathworks.com>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
Xref: news.mathworks.com comp.soft-sys.matlab:457831



Peter Perkins wrote:
> Yuri Geshelin wrote:
> 
>> Here is what Zebbik wrote:
>>
>> "The Slope Error is the thing i am looking for in MATLAB."
>>
>> Does lscov or polyconf accomplish this task?
> 
> Yuri, "yes" to LSCOV (depending on what is meant by "error"), but you're 
> right, my suggestion of polyconf was off track; I I wasn't paying enough 
> attention.
> 
> Zebbik, if by "error", you mean a standard error, then LSCOV will give 
> you that as its second output.
> 
> If you want a confidence interval for the coefficient, then REGRESS in 
> the Statistics Toolbox (as pointed out by Arthur G) returns that as its 
> second output.
> 
> In both cases, all you have to do is to create the design matrix X as
> 
>    X = [ones(length(x),1) x(:)]
> 
> where x and y are vectors containing your data.
It's np. thanks for ur answer it is always helpful to know something new.