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

1 | ```
LRT(dat, fitComb, ID)
``` |

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

Performs a likelihood ratio test.

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.

FIXME - references

1 | ```
#not run, function is used internally
``` |

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

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