powered by
nll(fit, y)
fit<-runif(100) y<-rbinom(100,1,0.5) nll(fit,y)
Run the code above in your browser using DataLab