newAggregation: Recalculate new site aggregations from a previous MCMC...

Description Usage Arguments Value

Description

If the site abundence sample was retained in a call to mcmc.aggregate the sites can be re-aggregated according to different region specifications.

Usage

1
newAggregation(fit, aggregation.data, type = "pred", ci.prob = 0.95)

Arguments

fit

The output list from a previous call to mcmc.aggregate. In order to use this function, keep.site.abund = TRUE had to be used in the original creation of fit. Else, there is nothing to be aggregated!

aggregation.data

A data frame with the sites in one column (with the same name as site.name used in the original call to create fit). The other columns are factor variables defining other site aggregations.

type

Which site abundance augmentation should be used, "pred" for posterior predictive or "real" for realized (just the posterior).

ci.prob

Probability for HPD credible intervals. Defaults to 0.95

Value

A named list with names equal to the variables in aggregation.data. Each element of the list is another list with elements:

aggregated.abund

The MCMC sample of the new aggregation

aggregation.summary

A summary of the aggregation MCMC


dsjohnson/agTrend.gam documentation built on May 6, 2019, 1:35 a.m.