Hi Colleagues,
Are there codes I can use to ensure SAS automatically present my results in the format required by most journals for articles?
Please see below:
1. SAS codes
2. Sample data
3. Current SAS output
4. Intended 'journal output format'
1. SAS Codes:
proc reg data = sample;
model ab = cd ef gh;
run;
2. Sample data:
ab | cd | ef | gh |
100 | 800 | 901 | 565 |
200 | 820 | 345 | 453 |
300 | 840 | 567 | 565 |
400 | 880 | 871 | 598 |
500 | 900 | 651 | 876 |
600 | 926 | 678 | 700 |
700 | 952 | 459 | 654 |
800 | 978 | 601 | 655 |
900 | 1004 | 502 | 333 |
3. Current SAS Output:
13.54412 | 0.9985 |
500.00000 | 0.9976 |
2.70882 |
Intercept | -2882.48846 | 70.17627 | -41.07 | <.0001 |
cd | 3.79174 | 0.07009 | 54.10 | <.0001 |
ef | -0.06167 | 0.02884 | -2.14 | 0.0855 |
gh | 0.01354 | 0.03297 | 0.41 | 0.6983 |
4. Intended 'Journal Output Format':
Panel A: | |||||
| (1) |
|
|
|
|
VARIABLE | ab |
|
|
|
|
|
|
|
|
|
|
cd | 3.79174* |
|
|
|
|
(54.10) |
|
|
|
| |
ef | -0.06167* |
|
|
|
|
(-2.14) |
|
|
|
| |
gh | 0.01354 |
|
|
|
|
(0.41) |
|
|
|
| |
|
|
|
|
|
|
Constant | -2882.48846*** |
|
|
|
|
(-41.07) |
|
|
|
| |
|
|
|
|
|
|
Observations | 9 |
|
|
|
|
R-squared | 0.9985 |
|
|
|
|
F-stat | 1088.59 |
|
|
|
|
Prob > F | <.0001 |
|
|
|
|
Robust standard errors in parentheses
*** p<0.01, ** p<0.05, * p<0.1
I basically want the results in something close to the Intended 'Journal Output Format' as shown above.
SAS provides some slightly different ODS journal styles called journal, journala, journal2, journal2a journal3 and journal3a.
you can use them with rtf, pdf and html output destinations, among others.
This is helpful. Thank you, PGStats.
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 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.