Given a model object from `asreml`

and a range of estimates of the parameter, the function will supply the likelihood ratio test statistic for the comparison of the full model to one where the parameter of interest is constrained.

1 | ```
constrainFun(parameter.val, full, fm2, comp)
``` |

`parameter.val ` |
a value for which the log Likelihood of a model is to be calculated |

`full ` |
the full model |

`fm2 ` |
starting values for the full model |

`comp` |
which variance component to constrain |

Used internally in the `proLik`

function

See Also `proLik`

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.