BookmarkSubscribeRSS Feed
TMKAIG1
Fluorite | Level 6

Hi!  In PROC LOGISTIC one can specify a prior distribution of outcomes using the PEVENT= option on the MODEL statement.  So, if the training sample has equal number of events and non-events, but the true proportion of events in the population is 5%, just set PEVENT = 0.05 to adjust for the bias in the sample.

 

Now, suppose life is a bit more complicated.  Let there be a variable called subgroup with values "A" and "B."  Perhaps my training sample is split into 20% "A" and 80% "B" but the true population is 5% "A" and 95% "B," and further suppose that the sample has 30% events in subgroup = "A" and 40% events in subgroup = "B," although the "A" population really has 2% events, and the "B" population really has 6% events.  Is there a way to use the PEVENT= option (and perhaps this requires another option, too) to adjust the results to the population proportions?

 

Thanks!

1 REPLY 1
TMKAIG1
Fluorite | Level 6
I believe that adding a WEIGHT variable can take care of the relative percentages of "A" and "B," but that still leaves me wondering how (and whether) PEVENT and / or other options can properly adjust the percentages of events within each category.

sas-innovate-2024.png

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.

 

Register now!

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 1447 views
  • 0 likes
  • 1 in conversation