Get number of data in each factor level (as well as interaction) from a fitted lm or glm [R]
- 阅读更多 关于 Get number of data in each factor level (as well as interaction) from a fitted lm or glm [R]
问题 I have a logistic regression model in R, where all of the predictor variables are categorical rather than continuous (in addition to the response variable, which is also obviously categorical/binary). When calling summary(model_name) , is there a way to include a column representing the number of observations within each factor level? 回答1: I have a logistic regression model in R, where all of the predictor variables are categorical rather than continuous. If all your covariates are factors