【问题标题】:R: step function not writing out complete model in result reportR:阶跃函数未在结果报告中写出完整模型
【发布时间】:2018-11-29 03:41:42
【问题描述】:

我正在这个模型上运行 RStudio 中的“step”功能:

inputData.entry = lmer(height ~  ENTRY_NO + REP + (1|SUB.BLOCK), data=inputData); # our model

这就是我正在运行的“步骤”:

help.search("step",package="lmerTest");
st <- step(inputData.entry,  reduce.fixed=FALSE);
print(st);

这是输出:

Backward reduced random-effect table:

                Eliminated npar  logLik    AIC     LRT Df Pr(>Chisq)
<none>                      142 -397.15 1078.3                      
(1 | SUB.BLOCK)          1  141 -397.47 1076.9 0.63157  1     0.4268

Backward reduced fixed-effect table:
         Eliminated  Df Sum of Sq    RSS    AIC F value    Pr(>F)    
ENTRY_NO          0 138    4238.1 6210.4 844.18  1.9775 5.749e-05 ***
REP               0   1      30.6 2002.9 816.03  1.9720    0.1627    
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Model found:
height ~ ENTRY_NO + REP

我的问题是声明----找到模型:

为什么inputData.entry在“lmer”中显示“Sub.Block”时,结果不会在模型中列出?

我做错了什么吗?

感谢您的建议!

【问题讨论】:

    标签: r linear-regression


    【解决方案1】:

    Step函数根据AIC选择模型。找到的模型表明根据这些标准选择了哪个模型。在这种情况下,算法告诉我们 Sub.Block 不会为分析带来有意义的信息,而不是它导致的附加复杂性,因此它不在建议的模型中。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-14
      • 2021-10-13
      • 2019-07-22
      • 2018-07-16
      • 1970-01-01
      相关资源
      最近更新 更多