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 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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