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.
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.
Dear ballardw,
Thank you for you helps. I have tried to follow you suggestions. At first, I ran this procedure.
Then I got the impulse response outputs below.
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.
But I got error message below.
I don't know what wrong in my codes. Can you help me out?
Bests,
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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.