compare_pvalue: Likehood-ratio Test for evreg Objects

Description Usage Arguments Details Value Examples

View source: R/compare_pvalue.R

Description

Compare two evreg objects by using chi-squared distritbuion

Usage

1
compare_pvalue(model1, model2)

Arguments

model1

A model of class c("gev", "evreg").

model2

A model of class c("gev", "evreg").

Details

compare_pvalue(model1, model2)

Model 1 has to be nested within model 2

Value

A numeric number that is between 0 to 1.

Examples

1
2
3
4
5
### Fremantle sea levels

f0 <- gevreg(SeaLevel, data = evreg::fremantle)
f1 <- gevreg(SeaLevel, data = evreg::fremantle, mu = ~ SOI)
compare_pvalue(f0, f1)

pengyuwei94/evreg documentation built on Aug. 29, 2019, 1:06 p.m.