euptfFun: Wrapper to predict and calculate prediction uncertainty for...

Description Usage Arguments Value References Examples

View source: R/euptfFun.R

Description

Wrapper to predict and calculate prediction uncertainty for the soil hydraulic properties.

Usage

1
2
3
4
5
6
7
euptfFun(
  ptf,
  predictor,
  target = "THS",
  query = "predictions",
  quantiles = c(0.05, 0.25, 0.5, 0.75, 0.95)
)

Arguments

ptf

A character specifying the ptf. Permissible are "PTF01" "PTF02", ...., "PTF32".

predictor

A data.frame or data.table of dimension m x n, with m observations and n predictor variables. The column names specify the names of the predictor variables. At least DEPTH_M and USSAND,USSILT, USCLAY have to be provided. If in doubt, which PTF to select, use the function which_PTF first, to determine the suggested ptf, based on the available predictor variable.

target

one of the soil hydraulic parameters: THS, FC_2, FC, WP, AWC_2, AWC, KS, VG, or MVG.

query

either predictions to compute the mean of the response variable or quantiles which results in quantile predictions to describe uncertainty of the prediction.

quantiles

a vector of numeric values for calculating the quantiles at

Value

References

\insertRef

Szabo.2020euptf2

Examples

1
2
data(sample_data)
result <- euptfFun(ptf, predictor = sample_data, target = "THS", query = "predictions", quantiles = c(.05,.25,.5,.75,.95))

tkdweber/euptf2 documentation built on Jan. 19, 2021, 4:20 p.m.