Mercurial > repos > vipints > rdiff
view rDiff/src/locfit/m/residuals.m @ 2:233c30f91d66
updated python based GFF parsing module which will handle GTF/GFF/GFF3 file types
| author | vipints <vipin@cbio.mskcc.org> |
|---|---|
| date | Tue, 08 Oct 2013 07:15:44 -0400 |
| parents | 0f80a5141704 |
| children |
line wrap: on
line source
function y = residuals(fit,type) % Residuals (or a few other things) from a locfit() fit. % % Input arguments: % fit - the locfit() fit. % type (optional) type of residuals. Valid types are % 'dev' (deviance, the default) % 'd2' (deviance squared) % 'pearson'(Pearson) % 'raw' (observed - fitted) % 'ldot' (derivative of log-likelihood) % 'lddot' (second derivative) % 'fit' (fitted values - no transformation) % 'mean' (fitted values - with back transformation) % % Author: Catherine Loader. if (nargin<2) type = 'dev'; end; y = predict(fit,'d','restyp',type); return;
