dnc(Y,M,p=3,method="VB",init=NULL,hyperparms=NULL,Missing=NULL,
controls=list(MaxIt=500,epsilon=1e-5,MaxItStg2=100,
epsilonStg2=1e-15,nDraws=10000,burnin=1000))
data(friendship)
set.seed(123)
dncObj <- dnc(friendship,M=4,p=3,method="Gibbs",
controls=list(nDraws=250,burnin=50,
MaxItStg2=25,epsilonStg2=1e-15))
print(dncObj)
BIC(dncObj)
par(mar=rep(0,4)+0.05)
plot(dncObj,plotRGL=FALSE,pch=16,phi=60,lwd=2,cex=1.5)
Run the code above in your browser using DataLab