turn on suggestions

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

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Data Mining
- /
- How to create prior probabilities without using SA...

Topic Options

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

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-12-2013 01:26 PM

Hi everyone,

I would like to create prior probabilities exactly like we can do it in SAS EM. However, I would like to run everything in SAS Base, so I was wondering if I need to create a specific code for that?

Any ideas?

Many thanks!!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-12-2013 01:38 PM

StephanieB wrote:

"create prior probabilities exactly like we can do it in SAS EM"

Where in SAS EM are you creating prior probabilities that you'd like to replicate? Logistic Regression or something else?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-12-2013 02:30 PM

Yes sorry I should have precised. I am using a logistic regression.

My training sample is 50/50, although my event is less than 2% in my whole population.

I would like to add that in SAS base.

In SAS EM, I just precise the prior probabilities by right clicking on the dataset >> Prior probabilities.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-12-2013 05:31 PM

You should check what the prior probability default is in EM, but I think what you're looking for is

1/p and 1/(1-p) where p is the probability of your event.

Please do double check, because it really depends on what your question is and other situations. It would help if you provided more details, and I also don't have time today to dig into this.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

07-25-2013 09:11 AM