简体   繁体   中英

Is there a clean way to suppress summary()'s display of fixed effects (a factor variable)?

I am running a model with a factor variable which has a ton of levels as a way of accounting for fixed effects. I would like to see the standard summary() of that model, but the ton of rows for each factor level really bloat the table. Is there a neat way of getting summary() to not display the rows from the factor?

Use the broom package - tidy(your_model) will give you a data frame of each term in the model and you can then subset it however you would like. You can also use glance() to get much of the other information included in the summary, without terms for each coefficient.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM