Hello
Have been using SAS university edition for the past year or so, but needed to use proc autoreg for a project and so upgraded to Viya.
I'm used to SAS base where I have it from virtual desktop. Getting a libname error on sas now and not sure how to proceed.
Here's the code i'm trying to run. Help is appreciated.
data main;
input year injury1 injury2 time program time_after;
cards;
2002 8950 7760 0 1 0
2003 10622 8992 0 2 0
2004 10125 7345 0 3 0
2005 11190 9288 0 4 0
2006 12890 11409 0 5 0
2007 14012 10639 0 6 0
2008 17600 12025 0 7 0
2009 17372 16523 1 8 1
2010 22513 23685 1 9 2
2011 26540 20807 1 10 3
2012 28673 26761 1 11 4
2013 32590 26454 1 12 5
2014 28005 24184 1 13 6
;
run;
proc autoreg data=main outest=main_out_parm;
Model injury1 = time program time_after/
method=ml nlag=6 backstep dwprob loglikl;
output out=main.out p=pvar r=rvar;
run;
proc print data = main;
run;
looks like this output out=main.out p=pvar r=rvar;
may need to be something like this
output out=main_out p=pvar r=rvar;
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.