首页 > 解决方案 > 回归中的观察次数

问题描述

如何找出回归中使用了多少观察值?

    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

标签: rregression

解决方案


使用内置nobs()函数

nobs(clog_simple1)

推荐阅读