next up previous contents
Next: multifake Up: Tcl Scripts Previous: Tcl Scripts

lrt: likelihood ratio test between two models

Tcl script to perform a likelihood ratio test between two models.

 

Syntax: lrt <niter> <model0_name> <model1_name>

 

Run <niter> simulations of datasets based on <model0_name>, calculates the likelihood ratio for <model1_name> relative to <model0_name>, and outputs the fraction of iterations with the likelihood ratio larger than that for the data.

Before running this procedure you must have created command files called <model0_name>.xcm and <model1_name>.xcm which define the two models. A good way to do this is to set up the model then use save model to make the command file.


 

next up previous contents
Next: multifake Up: Tcl Scripts Previous: Tcl Scripts