Learn R Programming

CompoundEvents (version 0.3.0)

DriverLGR: Assess potential driving factors of compound dry-hot events.

Description

Use the logistic regression model to establish relationships between climate indices (e.g., ENSO) and occurrences of compound dry-hot events.

Usage

DriverLGR(Y,CI)

Value

slope parameter and associated p-value

Arguments

Y

Occurrence of compound dry-hot events (0-1 binary variable)

CI

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

References

Hao, Z. et al. (2019). A monitoring and prediction system for compound dry and hot events. Environ. Res. Lett., 14:114034.

Examples

Run this code
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)
Y=c(0,0,1,1,0,0,0,0,0,0,1,0,1,0,0,1,0,0,0,0 )
res<-DriverLGR(Y,CI)

Run the code above in your browser using DataLab