likelihood_ratio: Likelihood-ratio test

View source: R/likelihood_ratio.R

anova.PlackettLuceR Documentation

Likelihood-ratio test

Description

Assesses the goodness of fit of two competing statistical models

Usage

## S3 method for class 'PlackettLuce'
anova(object, ...)

likelihood_ratio(x, split, ...)

Arguments

object

an object of class PlackettLuce

...

additional arguments passed to methods

x

an object of class rankings or grouped_rankings

split

a vector indicating the splitting rule for the test

Author(s)

Joost van Heerwaarden and Kauê de Sousa

Examples

library("PlackettLuce")
example("beans", package = "PlackettLuce")
G = group(R, rep(seq_len(nrow(beans)), 4))
d = cbind(G, beans)

split = ifelse(d$maxTN < 18.7175, TRUE, FALSE)

likelihood_ratio(G, split)

mod = PlackettLuce(G)

anova(mod)


agrobioinfoservices/gosset documentation built on March 13, 2024, 11:23 a.m.