Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2578

Re: Question about DurbinWatsonD

From Bob Hanlon <hanlonr@cox.net>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Question about DurbinWatsonD
Date 2011-05-21 10:50 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <ir85do$bjc$1@smc.vnet.net> (permalink)

Show all headers | View raw


>From More Information for LinearModelFit:

LinearModelFit returns a symbolic FittedModel object to represent the linear model it constructs.The properties and diagnostics of the model can be obtained from  model["property"]

data = {{0.05, 90}, {0.09, 95}, {0.14, 110}, {0.17, 125}, {0.2, 140}, {0.21, 
    150}, {0.23, 175}, {0.25, 190}, {0.3, 210}, {0.35, 255}};

LinearModelFit[data, {1, x^2}, x]["DurbinWatsonD"]

1.14


Bob Hanlon

---- Gilmar Rodriguez-pierluissi <peacenova@yahoo.com> wrote: 

=============
In:
 
http://reference.wolfram.com/mathematica/RegressionCommon/ref/DurbinWatsonD.html

it says that:
 
"As of Version 7.0, DurbinWatsonD has become a property of LinearModelFit".
 
But, when I evaluate:
 
data = {{0.05, 90}, {0.09, 95}, {0.14, 110}, {0.17, 125}, {0.2, 140}, {0.21, 150}, {0.23, 175}, {0.25, 190}, {0.3, 210}, {0.35, 255}};
 
LinearModelFit[data, {1, x^2}, x, RegressionReport -> {DurbinWatsonD}]
 
the above line will not produce the DurbinWatsonD value of 1.14 shown in the example on that web page.
 
How can I then get the DurbinWatsonD value?
 
Thank you!
 
Gilmar Rodriguez Pierluissi


Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Re: Question about DurbinWatsonD Bob Hanlon <hanlonr@cox.net> - 2011-05-21 10:50 +0000

csiph-web