NAME

Chart::GGPlot::Util::Stats - Utility statistics functions

VERSION

version 0.0005

DESCRIPTION

Functions in this module are used by Chart::GGPlot::Stat::Smooth.

Each function returns a Data::Frame object which has a column named "fit" for smooth fit values for given argument $xseq. And if argument $se is a true value, the result data frame would have additonal two columns "ymin" and "ymax" for confidence interval.

FUNCTIONS

loess

    loess(:$x, :$y, :$weights, :$xseq,
          :$span=0.75,
          :$se=false, :$level=0.95,
          :$degree=2, :$parametric=undef, :$drop_square=undef,
          :$normalize=true, :$family='gaussian')

This function requires Math::LOESS.

See Math::LOESS::Model for details of the arguments.

glm

    glm(:$x, :$y, :$xseq,
        :$se=false, :$level=0.95,
        $family='gaussian')

This function requires PDL::Stats::GLM and PDL::GSL::CDF.

SEE ALSO

Chart::GGPlot::Stat::Smooth

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.