r - 即使是最简单的 glm 函数也出现“未使用的参数”错误
问题描述
我的代码是
counts <- c(18,17,15,20,10,20,25,13,12)
outcome <- gl(3,1,9)
treatment <- gl(3,3)
data.frame(treatment, outcome, counts)
glm.D93 <- glm(counts ~ outcome + treatment, family = poisson())
但是,当我运行时,它显示:
Error in list(counts, outcome, treatment) : unused argument (treatment)
似乎每个“glm”功能在我的 R 中都不起作用
解决方案
推荐阅读
- python - TensorBoard 未找到标量数据
- javascript - 如何使用 d3js 和 reactjs 在饼图中将标签显示为工具提示
- android - 如何使用来自 mobile-buy-sdk-android 的查询获取博客列表
- scala - 使用 elastic4s 创建索引设置
- java - 单选按钮不返回值 JSP
- swift - 使用泛型加载本地存储的所有类型的 json 文件
- angular - 仅当第一个 observable 为 null 时,angular rxjs 才订阅第二个 observable
- c++ - 为什么在我的主函数中声明一个整数后我的整数数组中有错误?
- android - 在android studio的项目中手动添加大文件
- c# - 如何从 C#(GuitarPro 文件)中的 alphatab 分数生成 midi