Skip to contents

Predict colony width using posterior predict (lognormal model)

Usage

predict_colony_width(newdata, draws, draw_id = 1)

Arguments

newdata

A data.frame with a species column.

draws

Posterior draws from posterior_coeffs_sizedistribution.

draw_id

Integer index of the draw to use.

Value

Numeric vector of predicted widths.

Examples

if (FALSE) { # \dontrun{
newdata <- data.frame(species = c("Acropora", "Porites"))
predict_colony_width(newdata, posterior_coeffs_sizedistribution, draw_id = 10)
} # }