Learn R Programming

CoTiMA (version 0.7.0)

ctmaCompFit: 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)

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).

Arguments

model1

Model 1

model2

Model 2

Examples

Run this code
minus2llDiffTest <- ctmaCompFit(CoTiMAFullInv23Fit_6,
                                CoTiMAFullInvEq23Fit_6)
summary(minus2llDiffTest)

Run the code above in your browser using DataLab