## Not run:
#
# ##################################################################
# # Data on the effectiveness of silver sulfadiazine coating
# # on venous catheters for preventing bacterial colonisation of
# # the catheter and bloodstream infection.
# # Veenstra D et al (1998) "Efficacy of Antiseptic Impregnated
# # Central Venous Catheters in Preventing Nosocomial Infections:
# # A Meta-analysis" JAMA 281:261-267.
# #
# # Note that -Inf and Inf have been replaced by NA.
# ##################################################################
#
# studies <- c("Tennenberg","Maki","vanHeerden",
# "Hannan","Bach(a)","Bach(b)",
# "Heard","Collins","Ciresi","Ramsay",
# "Trazzera","George")
#
# logOR <- c(-1.5187189,-0.7136877,-1.3217558,-0.1910552,
# NA,-2.2005195,-0.5057461,-2.3538784,-0.3643810,
# -0.5371429,-0.7608058,-2.1400662)
#
# varlogOR <- c(0.4157541,0.2632550,0.6739189,0.3727788,NA,
# 0.7623470,0.2306169,0.7477891,0.3645463,0.2291839,
# 0.3561542,0.5190489)^2
#
# names(logOR) <- studies
# names(varlogOR) <- studies
# y <- cbind(logOR,varlogOR)
# colnames(y) <- c("logOR","varlogOR")
#
# # Prior information
#
# prior<-list(alpha=1,
# tau1=20,
# tau2=10,
# mub=0,
# Sb=100)
#
# # Initial state
# state <- NULL
#
#
# # MCMC parameters
#
# nburn<-20000
# nsave<-10000
# nskip<-20
# ndisplay<-100
# mcmc <- list(nburn=nburn,
# nsave=nsave,
# nskip=nskip,
# ndisplay=ndisplay)
#
# # Fit the model: First run
#
# fit1<-DPmeta(formula=y~1,prior=prior,mcmc=mcmc,
# state=state,status=TRUE)
# fit1
#
# # Summary with HPD and Credibility intervals
# summary(fit1)
# summary(fit1,hpd=FALSE)
#
# # Plot model parameters (to see the plots gradually set ask=TRUE)
# plot(fit1,ask=FALSE)
# plot(fit1,ask=FALSE,nfigr=2,nfigc=2)
#
# ## End(Not run)
Run the code above in your browser using DataLab