Skip to content
Prev 4590 / 20628 Next

deriv example for nlmer

Thanks!!

With your deriv code I got the error: Function '`{`' is not in the
derivatives table
Googling the error led me to a suggestion that I add [[2]] to the deriv
function like this:

logisSiteDeriv = deriv(body(logisKsite)[[2]], namevec = c("Asym", "xmid",
"K", "Kdiff", "middiff"), function.arg=logisKsite)

And that function runs in nlmer! So, I've very happy, except I am curious
as to what the [[2]] does...

Thanks again for your quick response.
Helen

On Tue, 19 Oct 2010 13:11:47 -0400, Manuel Morales
<Manuel.A.Morales at williams.edu> wrote:
------------------------------------------------------------------------
more
to
Sofaer
parameter):