楼主: dc364004135
1948 8

sas如何用数据算出公示里的未知的数 [推广有奖]

  • 0关注
  • 0粉丝

初中生

42%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
227 点
帖子
11
精华
0
在线时间
10 小时
注册时间
2014-5-12
最后登录
2016-4-30

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
现在有个公式是y=a(1-e^(-bx)) 已经有data关于y和x  我就想知道怎么用sas来算出公式里的a和b 希望大神能给点建议
二维码

扫码加我 拉你入群

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

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

关键词:如何用 Data 如何

沙发
qinyuquan 发表于 2014-5-24 15:05:44 |只看作者 |坛友微信交流群
谢谢楼主的分享啊~

使用道具

藤椅
dc364004135 发表于 2014-5-25 04:10:48 |只看作者 |坛友微信交流群
我没分享什么阿

使用道具

板凳
longgb246 学生认证  发表于 2014-5-25 09:10:02 |只看作者 |坛友微信交流群
2个未知数,一个方程,可以解出来?你是说怎么用图表示出这个公式吗?matlab或者r可以表示公式。

使用道具

报纸
jingju11 发表于 2014-5-25 11:18:13 |只看作者 |坛友微信交流群
I had done a project about Chemical Kinetics first order increase. The formula was very similar to yours.
I use the code like
  1. dert.y = b *(a- y);
  2.         fit y initial =(y = y0) / time =x dynamic;
  3.         run;
复制代码
in MODEL proc. and initialize y0 as 0. Of course you can fit it directly. NLIN works as well.
Jingju

使用道具

地板
dc364004135 发表于 2014-5-25 14:09:24 |只看作者 |坛友微信交流群
longgb246 发表于 2014-5-25 09:10
2个未知数,一个方程,可以解出来?你是说怎么用图表示出这个公式吗?matlab或者r可以表示公式。
是两个未知数 但我现在有X 和Y 的数据 想求出a 和b

使用道具

7
dc364004135 发表于 2014-5-25 14:13:14 |只看作者 |坛友微信交流群
jingju11 发表于 2014-5-25 11:18
I had done a project about Chemical Kinetics first order increase. The formula was very similar to y ...
i saw the proc nlin example but in i don't know how to set the initial parms

使用道具

8
bobguy 发表于 2014-5-26 07:33:06 |只看作者 |坛友微信交流群
Here is a trick you can play with nlin. See  below,

1) Suppose your data is generated by
a=0.5123; b=0.72135;
y=a*(1-exp(-b*x));

2) a and b can be recovered with proc nlin.

data t1;
a=0.5123; b=0.72135;
x=0.3;
y=a*(1-exp(-b*x));
output;
x=0.731;
y=a*(1-exp(-b*x));
output;

run;

proc nlin data=t1;
parms a=1 b=1;
model y=a*(1-exp(-b*x));
run;

The regression error is zero as expected.


                                             Sum of        Mean               Approx
           Source                    DF     Squares      Square    F Value    Pr > F

           Model                      2      0.0540      0.0270        .       .
           Error                      0    1.11E-16           .
           Corrected Total            1     0.00608


                                                Approx
                  Parameter      Estimate    Std Error    Approximate 95% Confidence Limits

                  a                0.5123            .           .           .
                  b                0.7214            .           .           .

使用道具

9
dc364004135 发表于 2014-5-28 02:03:20 |只看作者 |坛友微信交流群
bobguy 发表于 2014-5-26 07:33
Here is a trick you can play with nlin. See  below,

1) Suppose your data is generated by
万分感谢

使用道具

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-4-29 01:27