BookmarkSubscribeRSS Feed
Calcite | Level 5



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

Diamond | Level 26

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


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



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

From SAS Users blog
Want more? Visit our blog for more articles like these.
5 Steps to Your First Analytics Project Using SAS

For SAS newbies, this video is a great way to get started. James Harroun walks through the process using SAS Studio for SAS OnDemand for Academics, but the same steps apply to any analytics project.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 1 reply
  • 2 in conversation