lr.test: lr.test

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Computes the likelihood ratio test to compare two bimixt models.

Usage

1
lr.test(model1, model2)

Arguments

model1

an object of type model from bimixt.model.

model2

an object of type model from bimixt.model

Details

The model fits for model1 and model2 will be compared using the likelihood ratio test. Models must have been fit on the same data sets.

Value

Returns a p-value indicating the significance of the likelihood ratio test.

Author(s)

Michelle Winerip, Garrick Wallstrom, Joshua LaBaer

See Also

ROCauc ROCpauc ROCplot

Examples

1
2
3
4
5
6
case=rmix(50,10,1.2,15,1,.7) 
control=rmix(50,10,1.2,15,1,.95) 
model1=bimixt.model(case=case,control=control, type="4c") 
model2=bimixt.model(case=case,control=control, type="binorm") 
lr.test(model1, model2)
 


Search within the bimixt package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.