Fit a mark-recapture model

fit_model(data, ...)

Arguments

data

A list of data generated by the function mrmr::clean_data().

...

Additional parameters to pass to rstan::sampling()

Value

A list containing the stanfit object, extracted posterior draws, and input data.

Examples

if (FALSE) { captures <- system.file("extdata", "capture-example.csv", package = "mrmr") translocations <- system.file("extdata", "translocation-example.csv", package = "mrmr") surveys <- system.file("extdata", "survey-example.csv", package = "mrmr") out <- clean_data(captures, translocations, surveys) fit_model(out, chains = 1, iter = 10) }