在Excel VBA中记录R平方值 [英] Record the R squared value in Excel VBA

查看:269
本文介绍了在Excel VBA中记录R平方值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将R平方值导出到数据单元的代码是什么?


我想在电子表格中列出R平方值。


我还想添加趋势线然后重命名它包括R平方值。我打算只使用字符串操作,但我不知道如何为该趋势线分配变量R平方值的数值。(或任何趋势线)



谢谢

解决方案

您可以使用LINEST函数计算R2 - 参见< a href ="http://office.microsoft.com/en-us/excel-help/linest-HP005209155.aspx">
http://office.microsoft.com/en-us/excel-help /linest-HP005209155.aspx

What is the code to export the R squared value to a data cell?

I want to make a list of the R-squared values in a spread sheet.

I also want to add a trend-line then rename it to include the R-squared values. I plan on just using a string operation but I don't know how to assign a variable the numerical value of the R-squared value for that trend-line.(or any trend-line for that matter)

Thanks

解决方案

You can use the LINEST function to calculate R2 - see http://office.microsoft.com/en-us/excel-help/linest-HP005209155.aspx


这篇关于在Excel VBA中记录R平方值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆