Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

inla #151

Open
jebyrnes opened this issue May 1, 2024 · 0 comments
Open

inla #151

jebyrnes opened this issue May 1, 2024 · 0 comments

Comments

@jebyrnes
Copy link

jebyrnes commented May 1, 2024

Putting this here as a stub/inspiration for when I have more time, but, starting to think about this along the lines of https://gist.github.com/njtierney/aff88d1cb182c959b436154f48faf1e6

Such as

tidy.inla <- function(x){
  
  # x = model_inla
  term_names <- rownames(x$summary.fixed)
  re_term_names <- rownames(x$summary.hyperpar)
  
  
  tibble::as_tibble(bind_rows(x$summary.fixed, x$summary.hyperpar)) %>%
    dplyr::mutate(terms = c(term_names, re_term_names)) %>%
    dplyr::select(terms,
                  dplyr::everything())
  
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant