首页 > 解决方案 > 1:l 中的错误:Yhat 错误中长度为 0 的参数

问题描述

我是 R 的初学者,到目前为止一切都进行得很顺利。我正在努力提高我的成绩。谁能发现我做错了什么?

这些是我的步骤:

load(boot)
load(yhat)

lm.out<-lm(oWE ~ T1DF + T1DC + FA + PI + JC, data = Final_Dataset_mplus)
calc.yhat(lm.out) ##this works
booteval.yhat(lm.out) ##to bootstrap the results
# Error in 1:l : argument of length 0 ##here it does not work anymore.

其他信息:Windows 10 家庭版、RStudio 桌面版 1.4.1717

标签: rstatisticsstatistics-bootstrap

解决方案


推荐阅读