Description Usage Arguments Details Value
View source: R/subset_run_helpers.R
Get probabilities of abundances, as the multinomial probabilities, for each species at each time step as predicted by a TS model.
1 2 3 4 5 6 | get_abund_probabilities(
subsetted_dataset_item,
fitted_lda,
fitted_ts,
max_sims = NULL
)
|
subsetted_dataset_item |
list with (at least) element |
fitted_lda |
LDA fit to either a subsetted or a full dataset |
fitted_ts |
TS fit to that LDA |
max_sims |
defaults NULL. If supplied, will randomly draw |
Gets one matrix of probabiltiies for each draw from the posterior for estimates of changepoint locations and model parameters (in this case just the intercept).
list of matrices of abundance probabilities for each species (columns) for each timestep (rows), with one list for each draw from the posterior (or max_sims
, if supplied).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.