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

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

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