bridge.2samples(sample1,sample2,B=1000,min.iter=0,batch=10,mcmc.obj=NULL,all.out=TRUE,affy=FALSE,verbose=FALSE,log=FALSE,robust=TRUE)min.iter should be less than
B.
batch-th iteration will be stored.bridge.2samples. mcmc.obj is used to initialized the MCMC.
If no mcmc.obj, the MCMC is initialized to the least squares estimates.all.out is FALSE, only the posterior
mean is output. This could be used to save memory. robust==TRUE) or a Gaussian model (robust==TRUE) should be used. In the case of the t-model, the degrees of freedoms are estimated.bridge2 containing the sampled values from the
posterior distribution.
rho. If affy=TRUE, rho is
identically zero.bridge.3samplesdata(hiv)
bridge.hiv<-bridge.2samples(hiv[1:10,c(1:4)],hiv[1:10,c(5:8)],B=2000,min.iter=0,batch=1,mcmc.obj=NULL,verbose=FALSE,robust=TRUE)
Run the code above in your browser using DataLab