Re: Curve fitting - forcing intercept to zero



On 6/12/2006 7:03 PM, Andrew L wrote:
I'm using the functions polyfit and polyval to fit first and second
order polynomial curves to two vectors of data and to evaluate the
resulting fit. Is there a method for forcing the intercept to a value
of zero? If this does not exist as a specific option, are there any
workarounds that might accomplish this?

Thanks in advance for any thoughts or tips.

There's a method ... and it is almost always a very bad idea. Why do you want to force the intercept to 0?

--
Paige Miller
pmiller5@xxxxxxxxxxxxxxxx

It's nothing until I call it -- Bill Klem, NL Umpire
If you get the choice to sit it out or dance,
I hope you dance -- Lee Ann Womack
.



Relevant Pages

  • Re: nonlinear ancova?
    ... account slope and intercept). ... First I fit a model with separate intercepts ...
    (comp.soft-sys.matlab)
  • Re: multiple regression (intercept)
    ... One can fit a model without an intercept, ... Neither of course will the linear model without intercept ... I interpreted the OP's question as one where he had noticed something that seemed silly, but there was nothing in his comments to suggest that his data was anywhere near this region of the parameter space. ...
    (sci.stat.math)
  • Re: Poisson regression and constant term
    ... You are really setting a constraint on the model by not ... allowing an intercept to "absorb" some of the uncertainty of fitting. ... better fit is achieved. ... Poisson regression ...
    (sci.stat.math)
  • Re: Curve fitting - forcing intercept to zero
    ... My rationale for forcing the intercept to zero is based on the ... and you are predicting very close to the region of 0 on ...
    (comp.soft-sys.matlab)
  • Re: Can I do this on Excel?
    ... fit could vary. ... See help on SLOPE, INTERCEPT, LINEST, and STEYX functions. ... >> MS Excel MVP ...
    (microsoft.public.excel)