Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Gist of a little function for tidying the results of inla
# broom tidy method for class "inla"
tidy.inla <- function(x){
# x = model_inla
term_names <- rownames(x$summary.fixed)
tibble::as_tibble(x$summary.fixed) %>%
dplyr::mutate(terms = term_names) %>%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment