Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

Re: regress versus fit - force through zero/forceconstant term to zero

  • To: mathgroup at smc.vnet.net
  • Subject: [mg61505] Re: [mg61493] regress versus fit - force through zero/forceconstant term to zero
  • From: "David Annetts" <davidannetts at aapt.net.au>
  • Date: Thu, 20 Oct 2005 05:01:13 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Hi Chris,
 
> If I have:
> <<Statistics`LinearRegression`
> FAASCalPts={{1,0.032},{2,0.067},{5,0.183}}
> FAASCalFit=Fit[FAASCalPts,{cCaPos},cCaPos]
> FAASCalRegression=
>   Regress[FAASCalPts,{cCaPos},cCaPos,
>     RegressionReport\[Rule]{SummaryReport,BestFit}]
> 
> I expect the answer from Fit, but not the one from Regress. 
> Regress seems to be ignoring the fact that I only want the first order 
> (and not the zero/constant order) term.
> 
> How do I obtain fit diagnostics if I am forcing a 0 for the constant 
> order?

You need IncludeConstant->False as an option for Regress ...

	FAASCalRegression =
  		Regress[FAASCalPts, {cCaPos}, cCaPos,
	    	RegressionReport -> {SummaryReport, BestFit},
IncludeConstant -> False
		]

Regards,

Dave.


  • Prev by Date: Re: Re: Getting a pure text widget?
  • Next by Date: Re: ListSurfacePlot3D
  • Previous by thread: JLink share kernel from multiple Java Applications
  • Next by thread: refer to the result of FindRoot[ ]