Fit Bayesian Linear Model
btbr_brm_temperature.RdFit Bayesian Linear Model
Examples
spokoot <- fishguts::get_NorWestStreams('SpoKoot') %>% st_as_sf()
#> Error in fishguts::get_NorWestStreams("SpoKoot") %>% st_as_sf(): could not find function "%>%"
huc_comid <- read.csv('data/comid_huc12.csv')
#> Warning: cannot open file 'data/comid_huc12.csv': No such file or directory
#> Error in file(file, "rt"): cannot open the connection
spokoot_df <- dplyr::left_join(huc_comid, by = c('COMID' = 'comid')) %>%
dplyr::filter(!is.na(huc12)) %>%
sf::st_drop_geometry() %>%
dplyr::filter(S1_93_11 > 0)
#> Error in dplyr::left_join(huc_comid, by = c(COMID = "comid")) %>% dplyr::filter(!is.na(huc12)) %>% sf::st_drop_geometry() %>% dplyr::filter(S1_93_11 > 0): could not find function "%>%"
temp_model <- btbr_brm_temperature(spokoot_df)
#> Error in eval(expr, envir, enclos): object 'spokoot_df' not found