Typical, spotted a very stupid typo in my code after posting, and when
corrected I have solved my own problem. Sorry for bothering everyone.

Line below should have read:
optimise(f = nbinopt, interval = c(0,100), maximum=FALSE, tol=0.01)

Samuel Dennis wrote:
> 
> optimise(f = nbin063, interval = c(0,100), maximum=FALSE, tol=0.01)
> 

Hopefully this post helps someone else trying to do the same thing in
future.

-- 
View this message in context: 
http://www.nabble.com/Optimise-parameter-of-a-generic-function-tp25531369p25531370.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to