prepare_data_for_capture_plot: Prepare the data for plotting the effect of capture on the...

Description Usage Arguments Value See Also Examples

View source: R/figures.R

Description

This function is called internally by other functions. It prepares the data for the function plot_capture.

Usage

1
2
prepare_data_for_capture_plot(models_list, data, age_at_capture = 0, sex,
  capture_method)

Arguments

models_list

The list of fitted models

data

The dataset to be used

age_at_capture

The age at capture

sex

A character indicating the sex of the elephant: "males" or "females"

capture_method

A character indicating the method of capture of the elephant: "CAPTIVE", "IMM", "MILARSHI" or "STOCKADE"

Value

A list containing the data required for the plotting function.

See Also

plot_capture

Examples

1
2
3
4
5
6
res <- prepare_data_for_capture_plot(models_list = Models,
                                     data = SurvEles_small,
                                     age_at_capture = 5,
                                     sex = "males",
                                     capture_method = "IMM")
lapply(res, range)

courtiol/SileR documentation built on May 16, 2020, 8:10 p.m.