全部版块 我的主页
论坛 站务区 十一区 新手入门区
581 0
2025-01-10
如题,R语言[size=13.3333px]gam(data[,52]~s(data[,67])+age+gender, data=data, method="REML")错误提示[size=13.3333px]Error in variable.summary(gp$pf, dl, nrow(mf)) :
             'list' object cannot be coerced to type 'double'
但是用typeof验证变量就是“double”?typeof(data[,52]) [1] "double"
尝试后发现如果用data$的格式就可以跑,因为希望用for循环跑模型,变量需要用data[,i]的格式写,想知道原因和可行的方法。
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群