Zhiyong Zhang's Psychometric Website
Home Control Panel Login Register Search Submit Logout About me Contact me
My Research
This Site
Category: SAS WinBUGS

PLEASE READ THIS. It came to my attention recently that in order to use the SAS Macros for WinBUGS, one has to start SAS from its local directory, usually c:\Program Files\SAS\SASFoundation\9.2 for SAS 9.2. So go to that folder, and click on sas.exe to start SAS instead of using the shortcut either on your Desktop or start menu. I'll try to fix this ASAP.

NEW An example to use SAS and OpenBUGS is available now. Click here to see it.

This is a support page for one of our papers: Using WinBUGS inside SAS for Bayesian Analysis: With an Example of Fitting a Growth Curve Model. You will find the related macros and the program we used in that paper. 

Questions on how to use WinBUGS from SAS can be asked at http://www.statisticalexperts.com/forum/forumdisplay.php?fid=34 

SAS WinBUGS using multiple chains
Using OpenBUGS with SAS
To use OpenBUGS with SAS, one needs to change a few things in the SAS WinBUGS codes including:
(1) change the batch commands for OpenBUGS
(2) change the SAS macros
(3) download the customized OpenBUGS
SAS WinBUGS for growth curve models
SAS WinBUGS for factor analysis
SAS WinBUGS for linear regression
A complete SAS program to iteratively run WinBUGS for Monte Carlo simulation
This study is presented in APA 2006 meeting.
A modified version of Rodney Sparapani??s SAS Macros
A modified (improved?) verstion of Rodney Sparapani's SAS Macros to transform SAS data to be compatible to WinBUGS and Splus and also read in the CODA files generated by WinBUGS.
The related programs and their websites in this paper
A SAS interface for Bayesian Analysis with WinBUGS
NOTE: Many codes were messed up during the publishing process. You are recommended to use the draft

Bayesian methods are becoming very popular despite some practically difficulties in implementation. To assist in the practical application of Bayesian methods, we show how to implement Bayesian analysis with WinBUGS as part of a standard set of SAS routines. This procedure is first explained step by step by fitting a multiple regression model and a linear growth curve model. A third example is also provided to demonstrate how to iteratively run WinBUGS inside SAS for Monte Carlo simulation studies. The SAS codes
used in the current study can also accommodate many other models with only slight modification. This interface can be of practical benefit in many aspects of Bayesian methods because it allows the SAS users to benefit from the implementation of Bayesian inference procedure such as Gibbs sampling and it also allows the WinBUGS user to benefit from the data transformation in SAS and the flexibility of using WinBUGS.
Total 9 ,Display 1 - 9 1
Copyright © 2003-13 Zhiyong Zhang \'s Psychometric Website
Maintained by Zhiyong Zhang