Likelihood_Ratio_Test {Colossus}R Documentation

Defines the likelihood ratio test

Description

Likelihood_Ratio_Test uses two models and calculates the ratio

Usage

Likelihood_Ratio_Test(alternative_model, null_model)

Arguments

alternative_model

the new model of interest in list form

null_model

a model to compare against, in list form

Value

returns the score statistic

Examples

library(data.table)
#In an actual example, one would run two seperate RunCoxRegression regressions,
#    assigning the results to e0 and e1
e0 <- list("name"="First Model","LogLik"=-120)
e1 <- list("name"="New Model","LogLik"=-100)
score <- Likelihood_Ratio_Test(e1, e0)


[Package Colossus version 1.1.1 Index]