Help using Base SAS procedures

Logit model

Reply
N/A
Posts: 0

Logit model

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.
Contributor jf
Contributor
Posts: 22

Re: Logit model

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;
N/A
Posts: 0

Re: Logit model

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.
Ask a Question
Discussion stats
  • 2 replies
  • 134 views
  • 0 likes
  • 2 in conversation