BookmarkSubscribeRSS Feed
SIMMII
Calcite | Level 5

Hello,

 

I'm currently using SAS studio for my Economic Data Analysis course. In one of the questions on my assignment, it's asking me to take the data set of a worker's profile and make an unrestricted logit prediction on the probability of purchase=1. My original data set is called econ324.ps1, where the values of all 34 categorical variables (x1 to x34) as well as age, sex, and purchase are displayed. What code can I use to do this? Please see the attachment below. questionforproblemg.PNG

1 REPLY 1
PaigeMiller
Diamond | Level 26

This works regardless of which regression procedure you use, it will work even if you don't use PROC REG.

https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model....

 

Side note: I am skeptical that a predictive model with 36 explanatory variables is a good thing to do, because of likely multi-collinearity between the predictor variables could make the model coefficients go crazy, and could inflate the variance of the predicted values. Similarly, if you have 19 explanatory variables, you are quite likely in the same situation.

--
Paige Miller

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 765 views
  • 0 likes
  • 2 in conversation