estimate_error: Estimate error on the means

Description Usage Arguments Value Author(s)

View source: R/estimate_error.R

Description

This function estimates errors made on measuring the mean by calculating the standard deviation of a bootstrapped distribution.

Usage

1
estimate_error(speciesData, indivData, nPC, wholeBird = T)

Arguments

speciesData

A data frame with PC loadings and metadata at the species level.

indivData

A data frame with PC loadings and metadata at the individual level.

nPC

How many PC to retain? Either an integer i, then PC 1 to i will be retained, or a vector of integers representing what PCs to retain.

wholeBird

Logical. Whether the analysis is conducted per bird (T) or per patch (F).

Value

A vector of estimated errors, one for each dependent variable defined by nPC.

Author(s)

Raphael Scherrer


rscherrer/bop documentation built on May 22, 2019, 3:54 p.m.