confInt_TL: Estimated confidence intervals using TL

Description Usage Arguments Value Examples

View source: R/variances.R

Description

Estimated regional (or local) (1-alpha)-confidence intervals for an estimated quantile by using annual TL(0,1)-moments (TL).

Usage

1
confInt_TL(x, p, j = 1, alpha = 0.05)

Arguments

x

vector or matrix of annual observations.

p

a probability.

j

quantile and parameter estimation for the jth station (jth column of x). Irrelevant if is x is a vector.

alpha

confidence level for confidence interval.

Value

List of

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
library("evd")
# Seasonal observations of 80 years at one station:
x1 <- rgev(80, 2, 1, 0.2) # observations from season 1
x2 <- rgev(80, 3, 1, 0.3) # observations from season 2
x <- seas2ann(x1, x2) # calculaes annual maxima of the two seasons
confInt_TL(x=x, p=0.95, alpha=0.05)

# Seasonal observations of 100 years at 4 stations:
x1 <- matrix(rgev(400, 2, 1, 0.3), ncol=4) # observations from season 1
x2 <- matrix(rgev(400, 2, 1, 0.2), ncol=4) # observations from season 2
x <- seas2ann(x1, x2) # calculaes annual maxima of the two seasons
confInt_TL(x=x, j=2, p=0.95, alpha=0.05)

flood documentation built on May 2, 2019, 4:04 p.m.

Related to confInt_TL in flood...