boot_one {ThermalSampleR}R Documentation

Bootstrap sampling to calculate summary statistics of CTL values

Description

Calculate mean and CI's of CTL for a single population

Arguments

data

Data frame contains raw data. Must contain a column with a population identifier (e.g. population ID), and a column containing critical thermal limit data (e.g. temperatures at which critical limits are reached).

groups_col

Factor. Column containing name(s) of population(s) of interest

groups_which

Character. Which population should be analysed?

n_max

Numeric. Maximum sample size to extrapolate simulations.

n_min

Numeric. Minimum sample size to extrapolate simulations. Defaults to 3.

iter

Numeric. Number of bootstrap samples. Defaults to 29.

response

Numeric. Column containing thermal limit data for individual samples

Value

A data frame of CTL summary statistics from bootstrap resamples

Examples


head(coreid_data)
sims <- boot_one(data = coreid_data,
                    groups_col = col,
                    groups_which = "Catorhintha schaffneri_APM",
                    response = response,
                    n_max = 49,
                    iter = 99)


[Package ThermalSampleR version 0.1.2 Index]