#1   Report Post  
Christopher Anderson
 
Posts: n/a
Default Macros

Does anyone know how to write a macro to do a regression analysis? I tried
recording a macro while doing one but it never took.

Thanks for the help

Chris
  #2   Report Post  
Dave Peterson
 
Posts: n/a
Default

I recorded a macro when I did it against some test data and got this code:

Application.Run "ATPVBAEN.XLA!Regress", ActiveSheet.Range("$B$1:$B$28"), _
ActiveSheet.Range("$A$1:$A$28"), False, True, , "", True, True, True, _
True, , True

If you look at the dialog for that regression option, you can try to match up
those checkmarks/values to the order that the function requires.

This may help with that order:
inpyrng,inpxrng,constant,labels,confid,soutrng,
residuals,sresiduals,rplots,lplots,routrng,nplots, poutrng





Christopher Anderson wrote:

Does anyone know how to write a macro to do a regression analysis? I tried
recording a macro while doing one but it never took.

Thanks for the help

Chris


--

Dave Peterson
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
MACROS SETUP titoto Excel Discussion (Misc queries) 2 February 8th 05 09:19 PM
Macros disappear after a file is imported Brent E Excel Discussion (Misc queries) 1 December 18th 04 01:25 AM
Macros for playing sounds NAWBUS Excel Discussion (Misc queries) 3 December 15th 04 01:30 PM
How do I copy excel macros from one pc to another? KenK Excel Discussion (Misc queries) 1 December 13th 04 06:45 PM
How long have macros been available in Excel? warner Excel Discussion (Misc queries) 3 December 8th 04 03:28 AM


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

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"