这是一个简单的可直接在Excel中使用的VBA脚本。用于指数形式的回归:Y=aX^b。这种形式本质上是线性回归。需要注意的是,此代码要求X和Y均为正值,否则请先做必要的变换。
‘Author: zhb (zhanghongbo@itpcas.ac.cn)
‘Date: 2015.7.21
‘Final Revision: 2015.7.22
Option Explicit
Private Sub CommandButton1_Click()
Dim xx As Range
Dim yy As Range
Dim aa As Range
Dim bb As Range
Dim tt As Range
Dim pp As Range
Dim ss As Range
Dim rr As Range
Dim nn As Range
Continue Reading →