Likelihood_Ratio_Test {Colossus} | R Documentation |
Likelihood_Ratio_Test
uses two models and calculates the ratio
Likelihood_Ratio_Test(alternative_model, null_model)
alternative_model |
the new model of interest in list form, output from a poisson regression |
null_model |
a model to compare against, in list form |
returns the score statistic
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)