NAME

Math::LOESS::Prediction - Math::LOESS prediction and confidence intervals

VERSION

version 0.0001

DESCRIPTION

You normally don't need to construct object of this class yourself. Instead you get the object from an Math::LOESS object after its fit() method is called.

ATTRIBUTES

values

loess values evaluated at newdata.

stderr

Estimates of the standard error on the estimated values.

residual_scale

Estimate of the scale of the residuals.

df

Degrees of freedom of the loess fit.

It is used with the t-distribution to compute pointwise confidence intervals for the evaluated surface. It is obtained using the formula (one_delta ** 2) / two_delta

METHODS

confidence

confidence($alpha=0.01)

Returns the confidence intervals for predicted values, as a hashref of { fit => $fit, upper => $upper, lower => $lower }, where $fit, $upper, $lower are piddles.

SEE ALSO

Math::LOESS

AUTHOR

Stephan Loyd <sloyd@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Stephan Loyd.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.