Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default regression using set intercept

Please help

I can use the SLOPE and INTERCEPT formulas but I want to be able to
recalculate the 'best-fit' SLOPE using a defined intercept. I could do this
with the Regression data analysis tool but this seems very long winded when I
want to try out different intercepts and use them for different Y values.

Is there a simple formula I can use? TREND doesn't seem to do the job

many thanks in advance

Peter
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default regression using set intercept

If you want to estimate the slope of simple linear regression where the
intercept has been forced to be the constant (a), then use
=LINEST(ydata-a,xdata,FALSE)
Since you are only interested in a single value (slope), it is not necessary
to array enter this. This should be more numerically accurate than using
Solver.

If you are interested in the related statistics that LINEST can return, you
should be aware that for Excel versions prior to 2003, LINEST returns
incorrect values for R^2, F, and SSreg when the intercept is forced to zero.

Jerry

"Canary Pete" wrote:

Please help

I can use the SLOPE and INTERCEPT formulas but I want to be able to
recalculate the 'best-fit' SLOPE using a defined intercept. I could do this
with the Regression data analysis tool but this seems very long winded when I
want to try out different intercepts and use them for different Y values.

Is there a simple formula I can use? TREND doesn't seem to do the job

many thanks in advance

Peter

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default regression using set intercept

I used Solver and then thought about translation with LINEST. I got the same
results.
--
Bernard
www.stfx.ca/people/bliengme
remove CAPS in email address


"Jerry W. Lewis" wrote in message
...
If you want to estimate the slope of simple linear regression where the
intercept has been forced to be the constant (a), then use
=LINEST(ydata-a,xdata,FALSE)
Since you are only interested in a single value (slope), it is not
necessary
to array enter this. This should be more numerically accurate than using
Solver.

If you are interested in the related statistics that LINEST can return,
you
should be aware that for Excel versions prior to 2003, LINEST returns
incorrect values for R^2, F, and SSreg when the intercept is forced to
zero.

Jerry

"Canary Pete" wrote:

Please help

I can use the SLOPE and INTERCEPT formulas but I want to be able to
recalculate the 'best-fit' SLOPE using a defined intercept. I could do
this
with the Regression data analysis tool but this seems very long winded
when I
want to try out different intercepts and use them for different Y values.

Is there a simple formula I can use? TREND doesn't seem to do the job

many thanks in advance

Peter



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linear Regression by set Slope (not intercept) Ben Excel Discussion (Misc queries) 5 May 21st 06 10:49 AM
Excel Linear Regression by set slope (not intercept) Ben Excel Worksheet Functions 1 May 15th 06 11:49 AM
Regression intercept to 0 squalidae Excel Worksheet Functions 2 February 22nd 06 05:56 AM
intercept graph vs. function Misha Excel Worksheet Functions 2 February 2nd 06 12:00 AM
mutiple regression help happycow Excel Discussion (Misc queries) 1 July 30th 05 04:47 AM


All times are GMT +1. The time now is 12:09 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"