How do I obtained fitted values for this data?
Your output data set, regout has the predicted values in the variable P.
EDIT: You should also add a quit statement to the end of your proc reg, its one of the few procs that needs a quit; instead of a run;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
Latest Updates
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.
Browse our catalog!