ethno_beta: Beta-binomial probability of use

View source: R/ethno_beta.R

ethno_betaR Documentation

Beta-binomial probability of use

Description

Posterior probability that a random informant cites a use for a species, with a credible interval. Valid for small samples and rare uses, where the bootstrap in ethno_boot fails.

Usage

ethno_beta(data, level = 0.9, prior = c(1, 1))

Arguments

data

An ethnobotany data set with columns 'informant' and 'sp_name' and one column per use category. Any value above 0 counts as a citation.

level

Credible interval level. Default 0.9.

prior

Beta prior, c(a, b). Default c(1, 1) is uniform.

Value

A data frame with one row per species and use: 'k' informants citing, 'n' informants, posterior 'mean', 'lower' and 'upper'.

Limitations

Informants are treated as independent and as a random sample of the community. This is the share of informants citing a use, not the Use Value, which can exceed 1.

Examples

ethno_beta(ethnobotanydata)


ethnobotanyR documentation built on Oct. 16, 2026, 9:08 a.m.