boot_two {ThermalSampleR}R Documentation

Bootstrap sampling for difference in means between two groups

Description

Calculate difference in mean CT limits between two groups.

Arguments

data

Data frame contain raw data.

groups_col

Factor. Column containing names of two populations to compare

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.

group1

String. Name of first population to compare.

group2

String. Name of second population to compare.

colour_exp

Colour of the experimental data. Defaults to "blue".

colour_extrap

Colour of the extrapolated data. Defaults to "red".

legend.position

Position of the legend. Defaults to "top". Can be "bottom", "left", "right", or "none".

ggtheme

The theme for the ggplot created. See ggplot2 themes for options. Default set to theme_classic().

Value

A data frame of bootstrap resamples

Examples


head(coreid_data)
sims <- boot_two(data = coreid_data,
                        groups_col = col,
                        response = response,
                        group1 = "Catorhintha schaffneri_APM",
                        group2 = "Catorhintha schaffneri_NPM",
                        n_max = 49,
                        iter = 99)


[Package ThermalSampleR version 0.1.2 Index]