24小时热门版块排行榜    

查看: 3962  |  回复: 2
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

纵有疾风起

金虫 (小有名气)


[求助] MATLAB中fitlm函数产生的参数的含义 已有1人参与

fitlm函数产生的参数问题
1.p值是每个自变量在方程中所占的重要性吗?换言之,可以根据p值大小比较各自变量对方程的影响程度吗?
2.F-statistic vs constant model: 4.35,这是个什么意思
可能问题比较白痴,但是真的是急求有人解答,跪谢,附上我的运算程序
>> clear
x1=[34 28.001 28 28 28 22.001 22 22 22 22 16.001 16 16 16 10.001 10 10 10 10 4.001 4 4 4 4];
x2=[12 6 6 6.001 6 1 1 1.001 1 1 15 15 15.001 15 9 9 9.001 9 9 3 3 3.001 3 3];
x3=[8 2 2 2 2.001 10 10 10 10.001 10 4 4 4 4.001 12 12 12 12.001 12 6 6 6 6.001 6];
y=[9.78 14.12 14.34 9.08 12.49 9.84 12.86 11.36 14.96 12.33 7.19 10.29 12.64 9.45 16.53 13.64 15.58 15.71 15.27 13.58 17.71 14.00 9.51 14.72]';
x=[x1',x2',x3'];
fitlm(x, y,'quadratic');
>>
>> ans

ans =


Linear regression model:
    y ~ 1 + x1*x2 + x1*x3 + x2*x3 + x1^2 + x2^2 + x3^2

Estimated Coefficients:
                   Estimate      SE       tStat      pValue  
                   ________    ______    _______    _________

    (Intercept)      60641      18548     3.2694    0.0055927
    x1             -1509.4     847.11    -1.7818     0.096477
    x2             -3103.3     2782.3    -1.1153      0.28348
    x3              -11908     3742.8    -3.1816    0.0066603
    x1:x2          -73.932     64.765    -1.1415       0.2728
    x1:x3           193.36     76.495     2.5277     0.024137
    x2:x3           336.27     153.26     2.1941     0.045605
    x1^2            19.076     30.905    0.61723      0.54699
    x2^2             139.7     91.156     1.5325      0.14768
    x3^2            411.14     141.57      2.904      0.01155


Number of observations: 24, Error degrees of freedom: 14
Root Mean Squared Error: 1.79
R-squared: 0.737,  Adjusted R-Squared 0.567
F-statistic vs. constant model: 4.35, p-value = 0.00719

发自小木虫Android客户端
回复此楼

» 猜你喜欢

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

FMStation

至尊木虫 (知名作家)

【答案】应助回帖

感谢参与,应助指数 +1
https://www.mathworks.com/help/stats/fitlm.html

mdl = fitlm(tbl) returns a linear model fit to variables in the table or dataset array tbl. By default, fitlm takes the last variable as the response variable.

mdl = fitlm(tbl,modelspec) returns a linear model of the type you specify in modelspec fit to variables in the table or dataset array tbl.

mdl = fitlm(X,y) returns a linear model of the responses y, fit to the data matrix X.

mdl = fitlm(X,y,modelspec) returns a linear model of the type you specify in modelspec for the responses y, fit to the data matrix X.

mdl = fitlm(___,Name,Value) returns a linear model with additional options specified by one or more Name,Value pair arguments.
3楼2017-02-19 11:12:02
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 3 个回答

纵有疾风起

金虫 (小有名气)


2楼2017-02-18 21:19:56
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿 西北大学 总分282 英语一62 求调剂 +3 18419759900 2026-03-25 3/150 2026-03-25 23:20 by peike
[考研] 化学工程085602 305分求调剂 +9 RichLi_ 2026-03-25 9/450 2026-03-25 22:21 by 418490947
[考研] 化学调剂一志愿上海交通大学336分-本科上海211 +3 小鱼爱有机 2026-03-25 3/150 2026-03-25 20:13 by qingfeng258
[考研] 考研一志愿苏州大学初始315(英一)求调剂 +3 sbdksD 2026-03-24 4/200 2026-03-25 18:16 by xcjcqu
[考研] 296求调剂 +4 汪!?! 2026-03-25 7/350 2026-03-25 16:41 by 汪!?!
[考研] 289材料与化工(085600)B区求调剂 +4 这么名字咋样 2026-03-22 5/250 2026-03-25 08:20 by mx.yue
[考研] 材料专硕找调剂 +5 哈哈哈吼吼吼哈 2026-03-23 5/250 2026-03-24 19:07 by 了了了了。。
[材料工程] 一志愿C9材料与化工专业总分300求调剂 +4 曼111 2026-03-24 5/250 2026-03-24 15:44 by 星空星月
[考研] 一志愿北京化工大学材料与化工 264分各科过A区国家线 +3 哈哈157349 2026-03-21 3/150 2026-03-24 14:11 by zhyzzh
[考研] 305分求调剂(食品工程) +5 Sxy112 2026-03-21 7/350 2026-03-24 12:27 by 544594351
[考研] 361求调剂 +3 Glack 2026-03-22 3/150 2026-03-23 22:03 by fuyu_
[考研] 333求调剂 +3 ALULU4408 2026-03-23 3/150 2026-03-23 19:04 by macy2011
[考研] 工科0856求调剂 +5 沐析汀汀 2026-03-21 5/250 2026-03-23 17:56 by 海瑟薇-
[考研] 求老师收我 +3 zzh16938784 2026-03-23 3/150 2026-03-23 12:56 by ztnimte
[考研] 一志愿东华大学化学070300,求调剂 +7 2117205181 2026-03-21 8/400 2026-03-22 22:55 by chixmc
[考研] 求调剂一志愿海大,0703化学学硕304分,有大创项目,四级已过 +6 幸运哩哩 2026-03-22 10/500 2026-03-22 20:10 by edmund7
[考研] 306求调剂 +5 来好运来来来 2026-03-22 5/250 2026-03-22 16:17 by BruceLiu320
[考研] 一志愿中南化学(0703)总分337求调剂 +9 niko- 2026-03-19 10/500 2026-03-22 16:08 by ColorlessPI
[考研] 285求调剂 +6 ytter 2026-03-22 6/300 2026-03-22 12:09 by 星空星月
[考研] 317求调剂 +5 申子申申 2026-03-19 9/450 2026-03-20 22:26 by JourneyLucky
信息提示
请填处理意见