LRT: A function to perform likelihood ratio tests

Description Usage Arguments Details Value References Examples

Description

This function performs likelihood ratio tests for use in model selection.

Usage

1
LRT(dat, fitComb, ID)

Arguments

dat

a (non-empty) data frame containing an ID column (see ID) and a column called "hb", which contains the bin heights used in model fitting.

fitComb

a (non-empty) data frame returned from the function makeFitComb.

ID

a (non-empty) string indicating the column dat and the column in fitComb containing the group ids, these column names must match.

Details

Performs a likelihood ratio test.

Value

Returns an object with the same information as was passed into the fitComb argument, but with additional columns G2 = the test statistic, p = the p value, and df = the degrees of freedom.

References

FIXME - references

Examples

1
#not run, function is used internally 

binequality documentation built on May 2, 2019, 9:58 a.m.