BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am having trouble running an appropriate logit model. The final goal is to estimate the probabilities of each horse to win the race. I can provide sample data trough email but it is somewhat large to put on here, but I may be able to do so if needed.

The data is set up so that each horse and its characteristics are contained in one row (one observation). The identifying variables in each row are track, date and race number. I would like to run a model that will estimate probabilities by race number and these probabilities will sum to unity. The probability of each horse winning also depends on the other horses in the field.

I can run a simple proc logistic but the probability estimates from this model will not sum to one. There may be other ways to do this, proc catmod, or proc MDC.

Finally a simpler question: I would like to input data into the model after I make it to produce probability estimates for test data that was not used in the model creation. How would I do this. Even something simple like a linear regression with 10 covariates. Just something to run data trough the estimated formula.

Please let me know if you can help. I can provide more details and data if required. Thank you.
2 REPLIES 2
jf
Fluorite | Level 6 jf
Fluorite | Level 6
Regarding your final question, run the following to get predicted test result.

proc logistic data = model_data outmodel = logit_model;
model event(event = '1') = x;
run;
proc logistic inmodel= logit_model;
score data = test_data out= scored_test_data;
run;
deleted_user
Not applicable
awesome, thank you.

I still can't figure out how to specify the model correctly though. If anyone has any thoughts please let me know.

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 Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 767 views
  • 0 likes
  • 2 in conversation