全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
5153 3
2009-02-26

现在有个模型S(x)=...需要估计其参数

在估计参数的时需要用如下的误差函数:∑{ 1 - f^(x)/f(x) }^2,其中f(x)=1-S(x+1)/S(x),f^(x)是f(x)相应的估计值。

在SAS中怎样用Nlin编程呢?直接对S(x) Nlin的话应该是残差平方和最小,这里要求S(x)估计出来的参数使得误差函数最小。

不明白中,谢谢帮助 :)

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2009-2-26 14:50:00

proc model 可以解决这个问题

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-2-28 13:24:00

非常感谢

不过在Nlin中发现这个,是不是可以通过定义_LOSS_来达到目的呢?不知道哪里能找到关于这个的详细介绍

还有,奇怪的是在Nlin参数初值搜索时,对于某个给定的参数值,计算的Sum of Loss和我在Excel表格里面的结果不一样。

_LOSS_
is used to determine the criterion function for convergence and step shortening. PROC NLIN looks for the variable _LOSS_ in the program statements and, if it is defined, uses the (weighted) sum of this value instead of the residual sum of squares to determine the criterion function for convergence and step shortening. This feature is useful in certain types of maximum-likelihood estimation where the residual sum of squares is not the basic criterion.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2009-2-28 18:47:00

    呵呵 我发现问题了 自己写错了 :)

    谢谢帮助

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群