parConstrainFun: Function used in the proLik
function to produce a profile likelihood for a variance component
Description
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.Usage
parConstrainFun(x, parameters, full, fm2, comp, G)
Arguments
x
section of all parameter values to analyze
parameters
a value for which the log Likelihood of a model is to be calculated
full
the full model asreml
object
fm2
starting values for the full model
comp
which variance component to constrain
G
logical indicating if the component is part of the G structure
Details
Used internally in the proLik
function to call constrainFun
See Also
See Also proLik
, constrainFun