Skip to content
Prev 17843 / 20628 Next

allFit fails after removing object with starting values for model parameters from workspace

Thx a lot, Ben, for the fast reply which clearly explains the
cause of my problem. I've just found a solution which works for
me (and which is not as simple as "don't delete theta" ;-) ):
I "hardwire" theta's value into the function call:

theta <- c(1, 0.01, 0.2)
fm <- eval(bquote(
    lmer(Reaction ~ Days + (Days | Subject), data = sleepstudy,
         start = .(theta))
    ))

rm(theta)
allFit(fm, verbose = FALSE)


Works like a "charm", at least in my current workflow. :-)

  Thanks once more  --  Gerrit

---------------------------------------------------------------------
Dr. Gerrit Eichner                   Mathematical Institute, Room 212
gerrit.eichner at math.uni-giessen.de   Justus-Liebig-University Giessen
Tel: +49-(0)641-99-32104          Arndtstr. 2, 35392 Giessen, Germany
http://www.uni-giessen.de/eichner
---------------------------------------------------------------------

Am 08.08.2019 um 15:26 schrieb Ben Bolker: