BookmarkSubscribeRSS Feed
AmitKB
Fluorite | Level 6
Hi ,
I am using proc logistics with weight statement to take care of over sampling in the sample dataset.. I am using score statement in the same procedure to score the entire population dataset.

My question is during scoring will the wieghts be applied to entire population.

If it does then how can i prevent it as I am using the entire population.

Thanks,

Amit
1 REPLY 1
StatDave
SAS Super FREQ
This is discussed in the description of the WEIGHT statement and the "Details: Scoring Data Sets" section in the LOGISTIC documentation:

http://support.sas.com/onlinedoc/913/getDoc/en/statug.hlp/logistic_index.htm

Computation of predicted values (scoring) done by the SCORE statement does not use weights. However, weights, if available, are used to compute the fit statistics and ROC curve that the SCORE statement can also produce.

If you specify the MODEL, SCORE, and WEIGHT statements together to fit the model and score data in one step, then the weights affect only the model estimation and therefore the parameter estimates of the model. They are not used again in the scoring process.

See this usage note for more on oversampling: http://support.sas.com/kb/22/601.html

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
  • 1137 views
  • 0 likes
  • 2 in conversation