SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 727|回复: 1
打印 上一主题 下一主题

如何计算截距?

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2005-1-31 10:52:46 | 只看该作者

如何计算截距?

有没有用sas做过回归分析的朋友,能帮我讲一下要用到的计算截距?
谢谢!
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2005-2-18 20:25:59 | 只看该作者

re

For linear regression case:

x and y are two variables under consideration

if the least-squares line is y=a+bx (a is intercept and b is slope)

then b=r*sy/sx & [b:afa1f]a=ybar-b*xbar[/b:afa1f]

xbar and ybar are mean of x and y respectively

sx and sy are sample standard deviation



SAS/INSIGHT---(Analyze-Fit(Y X))---choose [b:afa1f]X [/b:afa1f]variable and [b:afa1f]Y[/b:afa1f] variable, then you can get a regression line and regression equation
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2025-6-9 01:23 , Processed in 0.092058 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表