Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
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
![]() |
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
MACROS SETUP | Excel Discussion (Misc queries) | |||
Macros disappear after a file is imported | Excel Discussion (Misc queries) | |||
Macros for playing sounds | Excel Discussion (Misc queries) | |||
How do I copy excel macros from one pc to another? | Excel Discussion (Misc queries) | |||
How long have macros been available in Excel? | Excel Discussion (Misc queries) |