famuvie / breedR

Statistical methods for forest genetic resources analysts
http://famuvie.github.io/breedR/
GNU General Public License v3.0
31 stars 24 forks source link

More informative error msgs: initial variance misspecification #79

Closed famuvie closed 7 years ago

famuvie commented 7 years ago

MRE: Take the following correctly-specified model and successively switch each value of initial variance by -1.

remlf90(
  fixed   = phe_X ~ 1,
  genetic = list(
    model = 'add_animal',
    pedigree = globulus[, 1:3],
    id = 'self',
    var.ini = 1),
  generic = list(
    bl = list(
      model.matrix(~ 0 + bl, globulus),
      diag(nlevels(globulus$bl)),
      var.ini = 1
    )
  ),
  data    = globulus,
  var.ini = list(resid = 1)
)

You then get the following error messages: