autocorrelations: autocorrelations

Description Usage Arguments Value

View source: R/autocorrelations.R

Description

autocorrelations

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
autocorrelations(
  data_file,
  data_file_2 = NULL,
  what_autocorr,
  number_of_plots,
  need_abbr = FALSE,
  state = NULL,
  maxLag = 1,
  mean_threshold = 10,
  pVal = 0.05
)

Arguments

data_file

Name of .csv file with data. No defaults.

data_file_2

Name of second .csv file to be united with the first one. It must be checked, that the data are from the SAME period. Default to NULL

what_autocorr

What lag we need. "max_lag" or "order_1". No default.

number_of_plots

Number of 1square meter plots in sampled area. No defaults

need_abbr

Boolean. Whether species names should be abbreviated. Default to FALSE.

state

Character: "g" - generative, "v" - vegetative, "v+j" - vegetative and juvenile. Which states should be selected. If NULL, all shoots will be selected. Dafault to NULL.

maxLag

Treshold value of maximum lag. Numeric. Default to 1.

mean_threshold

Mean shoot number threshhold for species to be taken into consideration. Numeric. Default to 3.2.

pVal

Number (0.05, 0.01 or less). p-value of Ljung-Box test for species to be taken into consideration. Default to 0.05.

Value

Dependent on what_autocorr parameter, data frame with autocorrelation coefficients for maximum lag value or the first order autocorrelation coeffitients.


daria71sukhova/teberda.tools documentation built on May 15, 2021, 10:20 p.m.