BookmarkSubscribeRSS Feed
Golf
Quartz | Level 8

Hello,

   I'm using proc VARMAX  and got the results of  impulse responses.   I'd like to know how can I save this estimates in an output file.

Thank You.

4 REPLIES 4
ballardw
Super User

What type of output file?

Do you want results in a data set or items in the results window?

 

You can direct results to output files by using the appropriate ODS <destination> syntax around a procedure or group of procedures.

 

ods rtf file="<Drive and path>\filename.rtf";

proc print data=sashelp.class;
run;

ods rtf close;

The above code would send the output to an RTF file using windows syntax. RTF and PDF have different default ODS styles than the results window usually and you may want to specify the STYLE option to get same appearance. The exact syntax for the file is obviously going to vary between operating systems and your set up. The output file needs the  close to finish.

Golf
Quartz | Level 8

Dear ballardw,

   Thank you for you helps. I have tried to follow you suggestions.  At first, I ran this procedure.

Capture1.PNG

Then I got the impulse response outputs below.

Capture2.PNG   

I would like to save impulse response from lag 1- 10 and its standard deviation of both dLM1 and dLIP in sas to calculate 1 standardized impulse response in SAS  (I plan to multiple 1 standard deviation of error obtained in VAR(1) to these impulse responses and standard deviations in SAS).  I use the following procedure.

Capture3.PNG

But I got error message below.

Capture4.PNG

I don't know what wrong in my codes.   Can you help me out?

Bests,

 

 

 

ballardw
Super User

Where did you create the data set you attempt to print?

 

If you want a data set that represents tables output by a procedure you want to use the ODS OUTPUT feature. Before or in the procedure code you place (generic example) code that looks similar to this:

 

ODS OUTPUT tablecreatedbyproc = nameofdesireddataset;

proc genricproc data=have <options>;

 

The details of the online help for the procedure will have a section named "ODS Table Names" to get the name of the tablecreatedbyproc value above along with the options that are used to create the table.

OR before you run the code you could use:

ODS Trace on;

<procedure code>

ODS Trace off; <reset the status>

The LOG will show the names of the tables created. If there is a question about which table you want you  can include the option "/ label" as part of the ODS Trace statement to get a brief description of the output.

 

You will likely want to use a data step or another procedure for the calculations you suggest you are doing.

Golf
Quartz | Level 8
Dear ballardw,
Thank you very much. From your help, I can out of the problem.
Best,

SAS INNOVATE 2024

Innovate_SAS_Blue.png

Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg

 

 

Back in the Classroom!

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

View all other training opportunities.

Discussion stats
  • 4 replies
  • 394 views
  • 0 likes
  • 2 in conversation