MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Question about DurbinWatsonD

  • To: mathgroup at smc.vnet.net
  • Subject: [mg119073] Re: Question about DurbinWatsonD
  • From: richard i pelletier <bitbucket at comcast.net>
  • Date: Sat, 21 May 2011 06:47:01 -0400 (EDT)
  • References: <ir5g8t$t1m$1@smc.vnet.net>

In article <ir5g8t$t1m$1 at smc.vnet.net>,
 Gilmar Rodriguez-pierluissi <peacenova at yahoo.com> wrote:

> 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.

The correct syntax for LinearModelFit is

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

Vale,
rip

-- 
email address is r i p 1 AT c o m c a s t DOT n e t


  • Prev by Date: Re: question about plotting
  • Next by Date: Re: question about plotting
  • Previous by thread: Question about DurbinWatsonD
  • Next by thread: Re: Question about DurbinWatsonD