apollo_lrTest: Likelihood ratio test

View source: R/apollo_lrTest.R

apollo_lrTestR Documentation

Likelihood ratio test

Description

Calculates the likelihood ratio test value between two models and reports the corresponding p-value.

Usage

apollo_lrTest(model1, model2)

Arguments

model1

Either a character variable with the name of a previously estimated model, or an estimated model in memory, as returned by apollo_estimate.

model2

Either a character variable with the name of a previously estimated model, or an estimated model in memory, as returned by apollo_estimate.

Details

The two models need to have been estimated on the same data, and one model needs to be nested within the other model.

Value

LR-test p-value (invisibly)


apollo documentation built on Oct. 2, 2024, 1:08 a.m.