# NOT RUN {
#Compute Fitted Model
y ~ X1 +X2
# For data without any nonsampled area
# Load Dataset
data(dataZIB)
saeHB.ZIB <- ziBinomial(formula = y~X1+X2, "s", iter.update=3, iter.mcmc = 1000,
burn.in = 200,data = dataZIB)
#the setting of iter.update, iter.mcmc, and burn.in in this example
#is considered to make the example execution time be faster.
#Result
saeHB.ZIB$Est #Small Area mean Estimates
saeHB.ZIB$Est$SD #Standard deviation of Small Area Mean Estimates
saeHB.ZIB$refVar #refVar
saeHB.ZIB$coefficient #coefficient
#Load Library 'coda' to execute the plot
#autocorr.plot(saeHB.ZIB$plot_alpha[[3]]) is used to #ACF Plot for alpha
#autocorr.plot(saeHB.ZIB$plot_beta[[3]]) is used to #ACF Plot for beta
#plot(saeHB.ZIB$plot_alpha[[3]]) is used to #Dencity and trace plot for alpha
#plot(saeHB.ZIB$plot_beta[[3]]) is used to #Dencity and trace plot for beta
# }
Run the code above in your browser using DataLab