BookmarkSubscribeRSS Feed
amychau
Obsidian | Level 7

Hello!

 

I was wondering if there was an easy way to run counterfactuals in SAS; for example, my regression is:

 

Y = B1*SAT + B2*LCFF + B3*Funding

 

Using the coefficients I find for B1, B2, and B3, I'd like to recalculate values for Y to see what Y would be if LCFF = 0. 

1 REPLY 1
Reeza
Super User

It sounds like you want to score a dataset. 

 

Make a mock dataset that has the values you'd like the Y for, original dataset with LCFF=0. 

Then use a score procedure to generate your output. 

 

Proc Score, PLM, Code statement or Score within PROC REG. 

 

http://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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