apollo_basTest: Ben-Akiva & Swait test

View source: R/apollo_basTest.R

apollo_basTestR Documentation

Ben-Akiva & Swait test

Description

Carries out the Ben-Akiva & Swait test for non-nested models and reports the corresponding p-value.

Usage

apollo_basTest(model1, model2)

Arguments

model1

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

model2

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

Details

The two models need to both be discrete choice, and need to have been estimated on the same data.

Value

Ben-Akiva & Swait test p-value (invisibly)


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