Rogue Wave banner
Previous fileTop of DocumentContentsIndexNext file

RWLinearRegressionParam



Data Type and Member Function Indexes
(exclusive of constructors and destructors)

Synopsis

#include <rw/analytics/linregparam.h>

double paramValue = 0.0;
double stdErr = 1.0;
int degFreedom = 5;

RWLinearRegressionParam regparam(paramValue, stdErr,
                                 degFreedom);

Description

Class RWLinearRegressionParam models an estimated linear regression parameter using a T distribution. Once a class instance is constructed, it can be used to test some statistical hypothesis about the parameter's value.

Example

The following simple example prints the 99 percent confidence intervals for all parameters in a linear regression.

Public Constructors

RWLinearRegressionParam();
RWLinearRegressionParam(double val, double stderr,
                        int degrees);
RWLinearRegressionParam(const RWLinearRegressionParam& a);

Public Member Functions

RWInterval<double> 
confidenceInterval(double alpha) const;
double 
standardError() const;
double 
tStatistic(double testval=0.0) const;
double 
tStatisticCriticalValue(double alpha) const;
double 
tStatisticPvalue(double testval=0) const;
double 
value() const;

Public Member Operator

RWLinearRegressionParam& 
operator=(const RWLinearRegressionParam& p);


Previous fileTop of DocumentContentsIndexNext file

©Copyright 1999, Rogue Wave Software, Inc.
Send mail to report errors or comment on the documentation.