楼主: yinhezhiwang
6830 3

[求助]matlab做最小二乘回归的t统计量如何显示?谢谢! [推广有奖]

  • 2关注
  • 31粉丝

已卖:340份资源

学术权威

55%

还不是VIP/贵宾

-

威望
6
论坛币
140097 个
通用积分
28.9919
学术水平
125 点
热心指数
161 点
信用等级
100 点
经验
96958 点
帖子
3241
精华
0
在线时间
2748 小时
注册时间
2006-4-18
最后登录
2025-12-3

楼主
yinhezhiwang 发表于 2008-4-30 04:56:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

最小二乘拟合,我看书上是用 polyfit 和 regress 。 下面是regress的help说明,但里面却只是显示了 R 和F 统计量,那么 t 统计量如何显示,请高人指点,谢谢了!

 REGRESS Multiple linear regression using least squares.
    b = REGRESS(y,X) returns the vector of regression coefficients, b,
    in the linear model  y = Xb, (X is an nxp matrix, y is the nx1
    vector of observations).
 
    [B,BINT,R,RINT,STATS] = REGRESS(y,X,alpha) uses the input, ALPHA
    to calculate 100(1 - ALPHA) confidence intervals for B and the
    residual vector, R, in BINT and RINT respectively.  The vector
    STATS contains the R-square statistic along with the F and p
    values for the regression.
 
    The X matrix should include a column of ones so that the model
    contains a constant term.  The F and p values are computed under
    the assumption that the model contains a constant term, and they
    are not correct for models without a constant.  The R-square
    value is the ratio of the regression sum of squares to the
    total sum of squares.

[此贴子已经被作者于2008-4-30 4:57:44编辑过]

二维码

扫码加我 拉你入群

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

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

关键词:MATLAB matla atlab 最小二乘 T统计量 MATLAB 最小二乘 统计量

沙发
newfei188 发表于 2008-4-30 06:50:00
 MATLAB
目光要长远,视野要开阔,胸怀要若谷,胆量要过人;为人要真诚,做事要踏实,入世要自

藤椅
xxxjiabaoyu 发表于 2010-4-9 13:38:30
这么久没人回答啊
我来试试吧 自己也碰到了这样的问题
可以考虑使用regstats命令
具体怎么用看帮助就知道了
model一般选‘linear’ 但是会包含常数项 偶也不知道如果不要常数项的话该怎么办

板凳
zhulinniao 发表于 2012-11-23 16:02:28
楼主解决了吗?我现在也遇到这个问题 实现pls可是如何检验统计量呢

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

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2025-12-6 03:26