Learn R Programming

cdfquantreg (version 1.3.1-2)

anova.cdfqr: Model comparison test for fitted cdfqr models

Description

Likelihood Ratio Tests for fitted cdfqr Objects.

Usage

# S3 method for cdfqr
anova(object, ..., test = "LRT")

Arguments

object

The fitted cdfqr model.

...

One or more cdfqr model objects for model comparison.

test

The model comparison test, currently only 'LRT' is implemented.

Examples

Run this code
data(cdfqrExampleData)
fit_null <- cdfquantreg(crc99 ~ 1 | 1, 't2','t2', data = JurorData)
fit_mod1 <- cdfquantreg(crc99 ~ vert | confl, 't2','t2', data = JurorData)
anova(fit_null, fit_mod1)

Run the code above in your browser using DataLab