Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default null vs zero in regression analysis

Is there a way to run a regression analysis with input data that contain some
null cells? I have a large matrix of data within there are many cells
containing zero value. As I continue to add data to the matrix, rather than
be forced to enter the number "0" in all zero value cells of a regression
input range, I prefer to just leave them blank. Any help would be
appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 837
Default null vs zero in regression analysis

LINEST (which is the basis for the ATP regression tool) does not permit empty
cells, missing or non-numeric values. If you are doing simple linear
regression, the functions SLOPE, INTERCEPT, STEYX, and RSQ ignore empty and
non-numeric cells (provided they do not contain error values).

http://groups.google.com/group/micro...a03470e7a1c650
gives equivalents for all the results from LINEST for simple linear
regression. You could embed array if formulas to insure that 1-variable
formulas discard values that correspond to null cells in the other variable.
Everything in the ATP regression analysis derive from these values.

For multiple regression, you will either have to roll your own or else
maintain a separate copy of the data that has no null values.

If the data can be arranged such that the null values occur below the
complete data, then you might be able to use a dynamic range
http://www.ozgrid.com/Excel/DynamicRanges.htm

Jerry

"R Vaughn" wrote:

Is there a way to run a regression analysis with input data that contain some
null cells? I have a large matrix of data within there are many cells
containing zero value. As I continue to add data to the matrix, rather than
be forced to enter the number "0" in all zero value cells of a regression
input range, I prefer to just leave them blank. Any help would be
appreciated.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 13
Default null vs zero in regression analysis

Thank you.


"Jerry W. Lewis" wrote:

LINEST (which is the basis for the ATP regression tool) does not permit empty
cells, missing or non-numeric values. If you are doing simple linear
regression, the functions SLOPE, INTERCEPT, STEYX, and RSQ ignore empty and
non-numeric cells (provided they do not contain error values).

http://groups.google.com/group/micro...a03470e7a1c650
gives equivalents for all the results from LINEST for simple linear
regression. You could embed array if formulas to insure that 1-variable
formulas discard values that correspond to null cells in the other variable.
Everything in the ATP regression analysis derive from these values.

For multiple regression, you will either have to roll your own or else
maintain a separate copy of the data that has no null values.

If the data can be arranged such that the null values occur below the
complete data, then you might be able to use a dynamic range
http://www.ozgrid.com/Excel/DynamicRanges.htm

Jerry

"R Vaughn" wrote:

Is there a way to run a regression analysis with input data that contain some
null cells? I have a large matrix of data within there are many cells
containing zero value. As I continue to add data to the matrix, rather than
be forced to enter the number "0" in all zero value cells of a regression
input range, I prefer to just leave them blank. Any help would be
appreciated.

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
Correlation or Regression Analysis les8 Excel Discussion (Misc queries) 3 October 17th 08 09:04 PM
regression analysis usedtostata Excel Discussion (Misc queries) 6 October 2nd 08 09:50 PM
how do i graph a regression analysis? Brad Excel Discussion (Misc queries) 1 September 29th 07 12:01 AM
Using Regression Analysis? ccpalm2 New Users to Excel 1 February 21st 07 10:03 AM


All times are GMT +1. The time now is 03:38 PM.

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

About Us

"It's about Microsoft Excel"