https://github.com/cran/bbmle
Raw File
Tip revision: 496d5e50e8ee11dd27cb1c79acdaa794c210c89d authored by Ben Bolker on 26 August 2008, 00:00:00 UTC
version 0.9.0
Tip revision: 496d5e5
grtest1.R
## from Eric Weese
library(bbmle)
f <- function(x=2,a=1) x^2 - a
f.g <- function(x,a) 2*x
mle2(f,fixed=list(a=1)) #works
mle2(f,gr=f.g,fixed=list(a=1)) #fails 
back to top