Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Programming
- /
- Programming
- /
- Re: Simulating of Beta-Binomial distribution

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

🔒 This topic is **solved** and **locked**.
Need further help from the community? Please
sign in and ask a **new** question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 08-31-2016 12:57 AM
(5326 views)

Hi,

I would highly appreciate it if you could give me any guidance how I can simulate the joint Beta-binomial distribution.

Thank you in advance.

Regards,

Yuliya

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Hi everyone,

thank you very much for your help.

I simulated with both ways.

Have a nice weekend.

Regards,

Yuliya

14 REPLIES 14

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

See if this pdf help you

https://www.sas.com/storefront/aux/en/spsimulationofdata/65378_excerpt.pdf

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Hi,

thank you very much. Unfortunately, there is only ine part of the book with the simplest simulations. I need to simulate a joint distribution Beta - binomial. Any ideas?

Thank you again.

Regards,

Yuliya

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

I think @RahulG's intent was to point you to the book Simulating Data with SAS, rather than suggest that your answer was found in the free chapter.

If you read and understand the blog the @Ksharp linked to, you should have no problem modifying it to the beta-binomial. Start there, and post again if you have a particular question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Thank you very much!

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Hi everyone,

thank you very much for your help.

I simulated with both ways.

Have a nice weekend.

Regards,

Yuliya

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Hello Ksharp;

I could not find PDF, CDF, and inverse CDF call functions for beta binomial in SAS. I appreciate your help in determining all possible values of unknown parameters, say eta1 and eta2 (reparameterized parameters) that satisfies two inverse beta binomial functions simultaneously. For example, if the inverse CDF of beta binomial is Q, then how we can solve the following equations together for eta1 and eta2 :

6=Q(0.8, eta1,eta2) and 2=Q(0.1,eta1,eta2) and once we have these values, how we can keep them to be used in a following step in the program.

Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

This thread is old and SOLVED (closed). It contains a link to a blog post that describes how to simulate from a compound distribution. The beta-binomial distribution is compound, so to generate random draws from the beta-binomial you can first draw p from a beta distribution and then draw X from the binomial(p) distribution.

If you want to use the other probability function such as PDF, CDF, and QUANTILE, please start a new thread in in this forum or in the Base SAS Community.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Hi,

How can I start a new thread in in this forum?

Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Click the "Please ask a new question" link at the top right. You can also go up one level to the General SAS Programming Community. However, if it is a question about the beta-binomial distribution you might want to post to the SAS Statistical Community

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

I'm not sure, but if c=a+b and rho=1/(a+b+1), c=(1-rho)/rho?

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

See the article "Simulate data from the beta-binomial distribution in SAS."

If you also need the PDF, CDF, and quantile functions, see the article "Compute the CDF and quantiles of discrete distributions."

**Don't miss out on SAS Innovate - Register now for the FREE Livestream!**

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.