Hi,
I am having issues with doing a regression since my dep var is string. I've recoded the variable but it won't intergrate into my regression.
Everything is successful but I think that my format and my data do not connect. Perhaps since they are on different paths?
libname x xlsx 'C:\Users\BF3513\Desktop\DATA\info1.xls';
run;
proc contents data=info1;
run;
proc format library=WORK;
proc format;
value $stat
'REJECTED' = "1"
'APPROVED' = "0"
other = .;
run;
proc print data=info1;
format status $stat.;
run;
options fmtsearch=(WORK);
proc format library=WORK fmtlib;
run;
proc freq data=info1;
format status $Status.;
tables status;
@KRHE wrote:
Hi,
I am having issues with doing a regression since my dep var is string. I've recoded the variable but it won't intergrate into my regression.
Everything is successful but I think that my format and my data do not connect. Perhaps since they are on different paths?
libname x xlsx 'C:\Users\BF3513\Desktop\DATA\info1.xls';
run;
proc contents data=info1;
run;
proc format library=WORK;
proc format;
value $stat
'REJECTED' = "1"
'APPROVED' = "0"
other = .;
run;
proc print data=info1;
format status $stat.;
run;
options fmtsearch=(WORK);proc format library=WORK fmtlib;
run;
proc freq data=info1;
format status $Status.;
tables status;
1. I don't see a regression here
2. You create format $stat and use format $status .
@KRHE wrote:
Hi,
I am having issues with doing a regression since my dep var is string. I've recoded the variable but it won't intergrate into my regression.
Everything is successful but I think that my format and my data do not connect. Perhaps since they are on different paths?
libname x xlsx 'C:\Users\BF3513\Desktop\DATA\info1.xls';
run;
proc contents data=info1;
run;
proc format library=WORK;
proc format;
value $stat
'REJECTED' = "1"
'APPROVED' = "0"
other = .;
run;
proc print data=info1;
format status $stat.;
run;
options fmtsearch=(WORK);proc format library=WORK fmtlib;
run;
proc freq data=info1;
format status $Status.;
tables status;
1. I don't see a regression here
2. You create format $stat and use format $status .
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.