llratio: Log likelihood ratio test on two fitted models

Description Usage Arguments Value Author(s)

View source: R/llratio.R

Description

Performs a log likelihood ratio test on two fitted depmix models.

Usage

1
2
3
	
	llratio(basemodel, constrainedmodel, ...)
	

Arguments

basemodel

Fitted model with a logLik method.

constrainedmodel

Fitted model with a logLik method.

...

Not currently used.

Value

llratio returns an object of class llratio which has slots:

value

: Minus twice the loglikelihood difference.

df

: The degrees of freedom, ie the difference in number of freely estimated paraemters between the models.

The print method shows the value, the degrees of freedom and the corresponding p-value under the chisquared distribution.

Author(s)

Ingmar Visser


koooee/depmixS4 documentation built on May 20, 2019, 1:07 p.m.