Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Reverse output of the Linest function

Hi

I want to use the Linest function for multiple regression however it has an
annoying feature where by the coeffecients are listed in descending order
along the row.

Is there a way to flip a row (or column for that matter) so that the
constant is shown first followed by the remain terms in ascending order? Also
can any error outputs be forced to the value zero?

I want to avoid macros and using the sort menu so that the end users can
just enter data and observe the output, which in this case is statistics from
mixed modelling.

I found the function pfitdata on the internet
(http://www.xlxtrfun.com/XlXtrFun/XlXtrFun.htm) which does exactly what I
want in terms of output but only fits polynomials and does not do multiple
linear regression.

Regards
Nick Flyger
Senior Biomechanist
Malaysian Institute of Sport
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 837
Default Reverse output of the Linest function

=INDEX(C1:F1,{4,3,2,1})
reverses the order of values in C1:F1.

Jerry

"Nick Flyger" wrote:

Hi

I want to use the Linest function for multiple regression however it has an
annoying feature where by the coeffecients are listed in descending order
along the row.

Is there a way to flip a row (or column for that matter) so that the
constant is shown first followed by the remain terms in ascending order? Also
can any error outputs be forced to the value zero?

I want to avoid macros and using the sort menu so that the end users can
just enter data and observe the output, which in this case is statistics from
mixed modelling.

I found the function pfitdata on the internet
(http://www.xlxtrfun.com/XlXtrFun/XlXtrFun.htm) which does exactly what I
want in terms of output but only fits polynomials and does not do multiple
linear regression.

Regards
Nick Flyger
Senior Biomechanist
Malaysian Institute of Sport

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default Reverse output of the Linest function

Thanks, hadn't seen that before and it works great. I devised a longer
workaround using Hlookup, however it meant a slightly different formula in
the first cell.

Is there a simply way to enter a descending array into the index formula.
For example in matlab you would write order=[10:-1:1] to get an array called
order descending from 10 to 1 in increments of 1?

Cheers
Nick

"Jerry W. Lewis" wrote:

=INDEX(C1:F1,{4,3,2,1})
reverses the order of values in C1:F1.

Jerry

"Nick Flyger" wrote:

Hi

I want to use the Linest function for multiple regression however it has an
annoying feature where by the coeffecients are listed in descending order
along the row.

Is there a way to flip a row (or column for that matter) so that the
constant is shown first followed by the remain terms in ascending order? Also
can any error outputs be forced to the value zero?

I want to avoid macros and using the sort menu so that the end users can
just enter data and observe the output, which in this case is statistics from
mixed modelling.

I found the function pfitdata on the internet
(http://www.xlxtrfun.com/XlXtrFun/XlXtrFun.htm) which does exactly what I
want in terms of output but only fits polynomials and does not do multiple
linear regression.

Regards
Nick Flyger
Senior Biomechanist
Malaysian Institute of Sport

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
Excel 2003 Linest Function Bug JimK Excel Worksheet Functions 12 October 3rd 06 01:50 PM
numerical integration integreat Excel Discussion (Misc queries) 4 May 12th 06 02:40 AM
Custom functions calculating time arguments Help Desperate Bill_De Excel Worksheet Functions 12 April 25th 06 02:22 AM
Linest function: data selection problems NathanG Excel Worksheet Functions 1 August 26th 05 04:12 PM
Automatically up date time in a cell Mark Excel Discussion (Misc queries) 5 May 12th 05 12:26 AM


All times are GMT +1. The time now is 05:54 AM.

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"