Path: news.mathworks.com!not-for-mail
From: "Maty " <matlab870@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How calculate STANDARDIZED RESIDUALs
Date: Fri, 19 Jul 2013 09:00:11 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 15
Message-ID: <ksav6r$t34$1@newscl01ah.mathworks.com>
References: <ksariq$lhj$1@newscl01ah.mathworks.com> <ksascn$nc2$1@newscl01ah.mathworks.com>
Reply-To: "Maty " <matlab870@gmail.com>
NNTP-Posting-Host: www-00-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1374224411 29796 172.30.248.45 (19 Jul 2013 09:00:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 19 Jul 2013 09:00:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 4433686
Xref: news.mathworks.com comp.soft-sys.matlab:799562

> Here is the MATLAB code:
> 
> MSE = (r'*r)/(n-p);
> st = r./(sqrt(MSE*(1-h)));
> 
> where
> r is the n by 1 vector of residuals
> n is the number of observations
> p is the number of unknown parameters
> MSE is the mean squared error
> h is the n by 1 leverage vector
> st is the n by 1 vector of standardized residuals.

Thanks for your help but I'm at the beginning. 
Can you kindly explain me how find/determine 'p' and 'h'?