r - 回归中的观察次数
问题描述
如何找出回归中使用了多少观察值?
model_simple <- as.formula("completion_yesno ~ ac + ov + UCRate + FirstWeek + LastWeek + DayofWeekSu + DayofWeekMo + DayofWeekTu + DayofWeekWe + DayofWeekTh + DayofWeekFr + MonthofYearJan + MonthofYearFeb + MonthofYearMar + MonthofYearApr +MonthofYearMay+ MonthofYearJun + MonthofYearJul + MonthofYearAug + MonthofYearSep + MonthofYearOct + MonthofYearNov")
clog_simple1 = glm(model_simple,data=cllw,family = binomial(link = cloglog))
summary(clog_simple1)
我已经尝试了fitted
没有产生具体观察次数的命令 N
解决方案
使用内置nobs()
函数
nobs(clog_simple1)
推荐阅读
- html - 如何制作彩虹边框半圆CSS?
- react-native - 无法对未安装的组件执行 React 状态更新。使用效果挂钩
- python - 从不是从 0 开始的索引的问题子集向量
- html - 我将如何正确设置导航栏的样式以使其更靠近边缘
- node.js - 如何将我的个人 NodeJS 网站上传到我的 FTP 服务器?
- tfs - VSTS/TFS 等待启用的代理。使用自定义任务条件时禁用所有可能的代理
- r - 在data.frame中添加一个字符串向量作为新列?
- bash - 用 sed 替换包含 $ in 的单词
- java - Hazelcast Pub-Sub,订阅者未收到消息
- discord.js - Discord.js 编辑嵌入