https://github.com/cran/bbmle
Raw File
Tip revision: 5625a62228b6aeace621dba09f4a456e4a5193f3 authored by Ben Bolker on 18 September 2009, 20:54:30 UTC
version 0.9.3
Tip revision: 5625a62
BIC.R
require(bbmle)
x <- 0:10
y <- c(26, 17, 13, 12, 20, 5, 9, 8, 5, 4, 8)
fit <- mle2(y~dpois(lambda=ymax/(1+x/xhalf)), start=list(ymax=25,xhalf=3))
fit2 <- mle2(y~dpois(lambda=(x+1)*slope), start=list(slope=1))
BIC(fit,nobs=length(x))
BIC(fit,fit2,nobs=length(x))
back to top