Hi
Im running 2 different regressions from the same dataset. I would like to name them differently to prevent confusion. How can i assign the label name?
proc reg data = main outest = main_regression1; model x= a b c; run ;
proc reg data = main outest = main_regression2; model x= a b d; run ;
data regression_summary ; set main_regression1 main_regression2 ; run ;
Couple of ways:
ods select parameterEstimates = regEst;
proc reg data = main outest = main_regression1;
model1: model x= a b c;
model2: model x = a b d;
run ; quit;
data regression_summary ;
length source input_dsn $50.;
set main_regression1 main_regression2 INDSNAME=source ;
input_dsn = source;
run ;
@andresmorago wrote:
Hi
Im running 2 different regressions from the same dataset. I would like to name them differently to prevent confusion. How can i assign the label name?
proc reg data = main outest = main_regression1; model x= a b c; run ;proc reg data = main outest = main_regression2; model x= a b d; run ;data regression_summary ; set main_regression1 main_regression2 ; run ;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.