ctmaCompFit: ctmaCompFit

View source: R/ctmaCompFit.R

ctmaCompFitR Documentation

ctmaCompFit

Description

Performs log-liklihood ratio tests to compare the fit of 2 models (CoTiMAFit objects created with ctmaFit or ctmaEqual), i.e., the difference between the two -2 times LLs between the first model and the more constrained second model. The nested structure of the two models is assumed to be given and not checked.

Usage

ctmaCompFit(model1 = NULL, model2 = NULL)

Arguments

model1

Model 1

model2

Model 2

Value

Returns the the difference between the two -2 times LLs (Diff_Minus2LL), the associated difference in degrees of freedom (Diff_df (= Diff_n.params)), and the probability (prob).

Examples

minus2llDiffTest <- ctmaCompFit(CoTiMAFullInv23Fit_6,
                                CoTiMAFullInvEq23Fit_6)
summary(minus2llDiffTest)


CoTiMA documentation built on Nov. 10, 2022, 5:16 p.m.

Related to ctmaCompFit in CoTiMA...