inst/snippet/baseballBA3.R

# suppress warnings from log(0) 
oldopt <- options(warn=-1)          
summary(nlmax(loglik,p=c(1,1),x=ba))
# get just the mle
nlmax(loglik,p=c(1,1),x=ba)$estimate
options(oldopt)                         # reset options

Try the fastR package in your browser

Any scripts or data that you put into this service are public.

fastR documentation built on May 1, 2019, 11:18 p.m.