PredictionLGR: Prediction of occurrences of compound events

Description Usage Arguments Value References Examples

View source: R/PredictionLGR.R

Description

Fit the logistic regression model (LGR) based on occurrences of compound events (Y01) and climate indices (CI).The output is the predicted probability of compound event occurrence for the given climate index value CI0

Usage

1
PredictionLGR(CI,Y01,CI0)

Arguments

CI

Climate index (CI) as the driving factor of compound events (e.g., ENSO)

Y01

Occurrences of compound dry-hot events (0-1 binvary variable) (L lead time)

CI0

The antecedent climate indices (L lead time)

Value

Probability of occurrences

References

Hao, Z. et al. (2019). Statistical prediction of the severity of compound dry-hot events based on ENSO . J. Hydrol., 572: 243-250.

Examples

1
2
3
CI=c(-0.7,-1.2,1.3,0.7,-0.6,1.1,-0.5,0.8,0.5,-0.5,1.6,-1.8,-0.5,-1.4,-0.1,2.2,-0.7,-1.1, 0.6, -1.7)
Y01=c(0,0,1,1,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0 )
PredictionLGR(CI,Y01,2)

CompoundEvents documentation built on Dec. 1, 2019, 3 p.m.