# Load the data used in the Held et al. (2006) paper
data("hepatitisA")
# Fix seed - this is used for the MCMC samplers in twins
set.seed(123)
# Call algorithm and save result.
otwins <- algo.twins(hepatitisA)
# This shows the entire output (use ask=TRUE for pause between plots)
plot(otwins, ask=FALSE)
# Direct access to MCMC output
hist(otwins$logFile$psi,xlab=expression(psi),main="")
require("coda")
print(summary(mcmc(otwins$logFile[,c("psi","xipsi","K")])))
Run the code above in your browser using DataLab