boot_f_pcor: boot_f_pcor

View source: R/boot_f_pcor.R

boot_f_pcorR Documentation

boot_f_pcor

Description

Generate R bootstrap replicates of a statistic applied to data.

Usage

boot_f_pcor(data, indices, cor.type)

Arguments

data

A vector, matrix, or data frame containing the input data. If a matrix or data frame is provided, each row is treated as a separate multivariate observation.

indices

A numeric or integer vector specifying the indices to be utilized in the calculation. These indices determine which elements or rows of the 'data' are to be included in the analysis

cor.type

A string specifying the method of correlation to be applied in the bootstrap procedure. Available options are "pearson" (default), "kendall", or "spearman".

Value

A matrix with bootstrapped estimates of partial correlation coefficients

References

https://www.datacamp.com/community/tutorials/bootstrap-r


jernejjevsenak/dendroTools documentation built on April 23, 2024, 6:01 p.m.