## Not run:
# # simulate partially correlated data
# X <- rnorm(50,0,1)
# C <- .5*X + rnorm(50,0,1)
# Y <- .3*X + .6*C + rnorm(50,0,1)
#
# # run jzs_partcor
# res <- jzs_partcor(X,Y,C)
#
# # plot posterior samples
# plot(res$beta_samples)
#
# # plot traceplot
# plot(res$jagssamples)
# # where the first chain (theta[1]) is for tau' and the second chain (theta[2]) for beta
#
# ## End(Not run)
Run the code above in your browser using DataLab