The model is the same as the modelling framework, but we want to establish a connection between the trajectory of forest structure, as represented by basal area, and forest diversity, as represented by genus diversity.
Equilibirum
Equilibrium model using control and pre-logging inventories to inform \(\theta\) prior of the recovery trajectory:
\[
\begin{align}
BA \sim \mathcal N (\mu_{BA,site}+\delta_{BA,plot}, \sigma_{BA})\\
\delta_{BA,plot} \sim \mathcal N(0,\sigma_{BA,plot}) \\
y \sim \mathcal N (\mu_{site}+\delta_{plot}, \sigma)\\
\delta_{plot} \sim \mathcal N(0,\sigma_{plot})
\end{align}
\]
pars %>%ggplot(aes(median.x)) +geom_histogram(fill ="lightgrey", col ="black") +geom_vline(xintercept =0) +theme_bw() +facet_wrap(~ site, scales ="free_y") +xlab(expression(delta[Diversity] ~"[ % ]"))
Code
pars %>%ggplot(aes(median.x)) +geom_histogram(aes(fill = site), col ="black") +geom_vline(xintercept =0) +theme_bw() +xlab(expression(delta[Diversity] ~"[ % ]"))
Code
pars %>%filter(!grepl("Tapajos", site)) %>%ggplot(aes(median.x)) +geom_histogram(aes(fill = site), col ="black") +geom_vline(xintercept =0) +theme_bw() +xlab(expression(delta[Diversity] ~"[ % ]"))
IDH - H2
Code
areas <-read_csv("data/raw_data/plot_area_v8.csv") %>%rename(site_raw = Site) %>%left_join(read_tsv("../modelling/data/raw_data/sites.tsv")) %>%group_by(site) %>%summarise(area =mean(PlotArea))
Rows: 625 Columns: 3
── Column specification ────────────────────────────────────────────────────────
Delimiter: ","
chr (2): Site, Plot
dbl (1): PlotArea
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Rows: 144 Columns: 2
── Column specification ────────────────────────────────────────────────────────
Delimiter: "\t"
chr (2): site, site_raw
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Joining with `by = join_by(site_raw)`
Rows: 17 Columns: 11
── Column specification ────────────────────────────────────────────────────────
Delimiter: "\t"
chr (2): variable, site
dbl (9): mean, median, sd, mad, q5, q95, rhat, ess_bulk, ess_tail
ℹ Use `spec()` to retrieve the full column specification for this data.
ℹ Specify the column types or set `show_col_types = FALSE` to quiet this message.
Joining with `by = join_by(site)`
Warning: Removed 1 row containing missing values or values outside the scale range
(`geom_text()`).