TDA_Power: Complete TDA power analyis

Description Usage Arguments Value Examples

View source: R/TDA_Power.R

Description

Complete TDA power analyis

Usage

1
2
TDA_Power(value, year, site, trend.magnitude.threshold, power = 0.8,
  power.simulations.n = 1000)

Arguments

value

vector of values (concentration, BIBI, etc.)

year

vector of years - if multiple values for same year, values are averaged (arithmetically)

site

vector of sites

trend.magnitude.threshold

absolute value of ecologically meaningful trend magnitude. if not provided, defaults to 10 percent of average value

power

1-B - defaults to 0.8

power.simulation

how many permutations to run to calculate power - default to 1000

Value

A tibble of trends and power.

Examples

1
2
3
data(all_bibi_data)
tmp<-subset(all_bibi_data,Site %in% c('08BEA3312','08BEA3321'))
TDA_Kendall(tmp$`Overall Score`,tmp$Year,tmp$Sites,0.5)

clarkbar88/TDA documentation built on Nov. 4, 2019, 8:54 a.m.