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

The data as a vector, matrix or data frame. If it is a matrix or data frame then each row is considered as one multivariate observation.

indices

indices to be used for calculation

cor.type

a character string indicating which correlation

fun

a function to use in bootstrap procedure coefficient is to be computed. One of "pearson" (default), "kendall", or "spearman".

Value

A matrix with bootstrapped estimates of partial correlation coefficients

References

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


dendroTools documentation built on July 26, 2023, 5:12 p.m.