substitute_change: Substitute DBH changes (cm/yr) outside of a pre-set...

Description Usage Arguments Value

View source: R/substitute_change.R

Description

Substitute DBH changes (cm/yr) outside of a pre-set acceptable range of DBH changes by their expected values based on other observed values inside the pre-set interval. Can also substitute AGB changes by intergrating the AGB allometry over the distribution of expected DBH changes. This function allows to have unbiased stand-level estimates of DBH and AGB growth while removing the most obvious measurement errors.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
substitute_change(
  varD,
  hom_change,
  cut = c(-0.5, 5),
  lambda = 0.5,
  value = "D",
  D = NULL,
  WD = NULL,
  E = NULL,
  a = NULL,
  b = NULL
)

Arguments

varD

Vector of changes in DBH.

hom_change

Vector of changes in height of measurement.

cut

Acceptable range of DBH changes. Default is c(-0.5, 5)

lambda

Parameter of the modulus function used to normalize DBH changes (see Condit et al., 2017). Default is 0.5

value

What change should be computed, either "D" (DBH) or "AGB". Default is "D".

D

Must provide a value when value = "AGB". Default is NULL.

WD

Vector of wood densities. Must provide a value when value = "AGB" (can be "NA" for temperate sites). Default is NULL.

E

Vector of environmental parameter used in Chave et al pantropical allometric equation. Must provide a value when value = "AGB" (NA for temperate sites). Default is NULL.

a

Vector of first parameter used in Chojnacky allometric equations. Must provide a value when value = "AGB" (NA for tropical sites). Default is NULL.

b

Vector of second parameter used in Chojnacky allometric equations. Must provide a value when value = "AGB" (NA for tropical sites). Default is NULL.

Value

A vector of corrected changes in DBH (if value = "D) or AGB (if value = "AGB).


cpiponiot/cdynfgeo documentation built on July 7, 2020, 3:27 p.m.