lir_bootstrap | R Documentation |
Generate bootstrap samples from original observations by sampling individuals with replacement.
lir_bootstrap(X, tp, seed = NULL)
X |
A list or matrix containing identities of individuals identified per sampling period |
tp |
A set of observation time |
seed |
Random seed; the default is NULL |
For more details on this function, please see Efron and Tibshirani (1993).
The bootstrap samples of animal movement data.
Efron, B., & Tibshirani, R. J. (1986). Bootstrap methods for standard errors, confidence intervals, and other measures of statistical accuracy. Statistical science, 1(1), 54-75.
Efron, B., & Tibshirani, R. J. (1993). An introduction to the bootstrap. Chapman and Hall Press.
# Example
# load data
data(simulationA)
tp <- simulationA@tp
# if X is a list
list_simulation_A <- simulationA@list_simulation_A
bootstrap_sample <- lir_bootstrap(list_simulation_A, tp)
# if X is a matrix
matrix_simulation_A <- simulationA@matrix_simulation_A
bootstrap_sample <- lir_bootstrap(matrix_simulation_A, tp)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.