Last chance! 50% off unlimited learning
Sale ends in
data("simdata", package = "mederrRank")
summary(simdata)
if (FALSE) {
fit <- bhm.mcmc(simdata, nsim = 1000, burnin = 500, scale.factor = 1.1)
resamp <- bhm.resample(fit, simdata, p.resample = .1,
k = c(3, 6, 10, 30, 60, Inf), eta = c(.5, .8, 1, 1.25, 2))
fit2 <- bhm.constr.resamp(fit, resamp, k = 3, eta = .8)
plot(fit, fit2, simdata)
}
theta0 <- runif(2, 0, 5)
ans <- negbinom.em(simdata, theta0, 50000, 0.01,
se = TRUE, stratified = TRUE)
ans$theta
ans$se
if (FALSE) {
summary(fit2, ans, simdata)
}
Run the code above in your browser using DataLab