Skip to contents

Predict polyp density per colony using posterior predict (gaussian model)

Usage

predict_polyp_density(newdata, draws, draw_id = 1)

Arguments

newdata

A data.frame with species column.

draws

Posterior draws from posterior_coeffs_polypdensity.

draw_id

Integer index of the draw to use.

Value

Numeric vector of predicted polyp densities.

Examples

if (FALSE) { # \dontrun{
newdata <- data.frame(species = c("Acropora", "Porites"))
predict_polyp_density(newdata, posterior_coeffs_polypdensity, draw_id = 5)
} # }