# Using sldata:
data(sldata)
attach(sldata)
#We define all the inputs:
Y=data.frame(measure,age)
X=data.frame(rep(1,300),sex)
betap<-matrix(0,2,2)
covp<-diag(1,2)
Sp=diag(1,2);
nburn=as.integer(200);
# Then we run he function:
imp<-jomo1con.MCMCchain(Y,X,betap,covp,Sp,nburn)
#We can check the convergence of the first element of beta:
plot(c(1:nburn),imp$collectbeta[1,1,1:nburn],type="l")
#Or similarly we can check the convergence of any element of omega:
plot(c(1:nburn),imp$collectomega[1,2,1:nburn],type="l")
Run the code above in your browser using DataLab