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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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