BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Yuliya
Obsidian | Level 7

Hi,

 

I have f(X,Y) and would like to simulate a marginal f(x) with the Gibbs sampling where conditional distribution of X is Binomial and conditional distribution of Y is Beta.

 

Thank you for any ideas.

 

Regards,

 

Yuliya

1 ACCEPTED SOLUTION

Accepted Solutions
Rick_SAS
SAS Super FREQ

I would use PROC MCMC, which supports Gibbs sampling.

 

If you insist on using SAS/IML, there are several papers on the topic.  Search lexjansen.com for 

    "Gibbs sampling" iml

and you will find several papers that can get you started.

View solution in original post

3 REPLIES 3
Reeza
Super User

Please don't post the same question in multiple forums. 

 

If you have access to it, check Rick Wicklins book on Simulation in SAS. 

Yuliya
Obsidian | Level 7

Ok, sorry.

 

Thank you. 

 

Regards,

Yuliya

Rick_SAS
SAS Super FREQ

I would use PROC MCMC, which supports Gibbs sampling.

 

If you insist on using SAS/IML, there are several papers on the topic.  Search lexjansen.com for 

    "Gibbs sampling" iml

and you will find several papers that can get you started.

sas-innovate-2024.png

 

Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.

 

Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer. 

 

Register now!

Multiple Linear Regression in SAS

Learn how to run multiple linear regression models with and without interactions, presented by SAS user Alex Chaplin.

Find more tutorials on the SAS Users YouTube channel.

From The DO Loop
Want more? Visit our blog for more articles like these.
Discussion stats
  • 3 replies
  • 1035 views
  • 1 like
  • 3 in conversation