get_zib_ml: Estimate Probability of Occupancy and Conditional Probability...

Description Usage Arguments Value See Also Examples

Description

Maximum likelihood estimates for probability of occupancy and probability of detection coditional on site being occupied using the get_zib_likelihood function.

Usage

1
get_zib_ml(data, ci = 0.95)

Arguments

data

Data.frame with at least two columns: one named obs_counts with the observed counts at each site, and once called n_tests with the number of tests per sites

ci

Value for confidence interval (between 0 and 1)

Value

A data.frame with maximum likelihood estimates for probability of occupancy and probability of detection given site is occupied, plus confidence interval around the estimates.

See Also

get_zib_likelihood

Examples

1
2
data <- maldetectr::sim_zib_data( n_sites = 10, n_samples = 5, p_oc = 0.2, p_dt = 0.8 )
maldetectr::get_zib_ml( data = data, ci = 0.95 )

andersgs/maldetectr documentation built on May 12, 2019, 2:41 a.m.