Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Business Analysis Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWLinearRegressionParam


Does not inherit

Local Index

Members

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 DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.