Learn R Programming

apollo (version 0.1.0)

apollo_lrTest: Likelihood ratio test

Description

Calculates the likelihood ratio test and prints result.

Usage

apollo_lrTest(baseModel, generalModel)

Arguments

baseModel

Character. Name of a previously estimated model whose results were written to disk by apollo_saveOutput. This is the restricted model, i.e. the one with fewer parameters.

generalModel

Either a character variable with the name of a previously estimated model, or an estimated model in memory, as returned by apollo_estimate. This model nests baseModel, and it should have more parameters than it.

Value

LL ratio test statistic (invisibly)