Regress function for Excel VBA

本秂侑毒 提交于 2019-12-08 11:08:55

问题


Using the regress function in excel and I am having trouble getting the output to post in the spot i want. Excel keeps creating a new workbook in which to place the results. What am I doing wrong? How do I target a space in my current workbook to paste the output of the regression?

Application.Run "ATPVBAEN.XLAM!Regress", Worksheets("statistics Database").Range("$C$7:$C$" & (7 + I - 1)), Worksheets("statistics Database").Range("$D$7:$F$" & (7 + I - 1)), False, True, , , True, , True, , Worksheets("statistical Output").Range("$A$1"), , False

Syntax is supposed to be:

Regress(inpyrng, inpxrng, constant, labels, confid, soutrng, residuals, 
sresiduals, rplots, lplots, routrng, nplots, poutrng)

I am adding the proper routrng and poutrng (So I thought. What am i doing wrong!)


回答1:


I figured out the answer:

First, for similar questions like mine, You can open the .xlam file with the password Wildebeest!!. Then you will see the full parameters list and the whole logic behind the function.

Second, the answer for this question was the soutrng parameter. This is the primairy reg-out.



来源:https://stackoverflow.com/questions/30310431/regress-function-for-excel-vba

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!