BookmarkSubscribeRSS Feed
Najmeh
Calcite | Level 5
when i run the following program. It shows me the result but I cannot see any graph. I wanna see the graph to see how well it fits the data.
data Crash;
input ID year major minor accident wt;
datalines;
1 3 9.8 9.9 10 0
1 4 9.7 9.8 10 0
1 5 9.8 9.8 9 0
1 6 9.9 9.8 4 -1.10
2 2 10.7 9.5 38 0
2 3 10.7 9.5 46 0
2 4 10.7 9.6 44 0
2 5 10.7 9.6 39 -0.29
3 1 11.0 9.2 41 0
3 2 11.0 9.3 49 0
3 3 11.1 9.3 40 0
3 4 11.1 9.4 20 -1.10
4 2 10.4 10.0 40 0
4 3 10.4 10.1 31 0
4 4 10.2 9.9 45 0
4 5 10.3 10.1 38 -0.29
5 3 10.6 10.4 78 0
5 4 10.6 10.4 64 0
5 5 10.6 10.4 54 0
5 6 10.6 10.5 27 -1.39
6 2 10.4 10.1 57 0
6 3 10.4 10.1 51 0
6 4 10.2 10.1 49 0
6 5 10.3 10.2 14 -1.39
7 2 10.5 10.4 56 0
7 3 10.5 10.4 41 0
7 4 10.4 10.4 50 0
7 5 10.6 10.4 21 -0.54
8 2 10.3 9.6 41 0
8 3 10.3 9.7 31 0
8 4 10.4 9.7 33 0
8 5 10.4 9.9 9 -1.39
9 1 10.2 8.7 20 0
9 2 10.1 8.6 4 0
9 3 10.2 8.5 14 0
9 4 10.0 8.2 15 0
9 5 10.1 8.6 8 0
9 6 10.1 8.6 11 0
10 1 9.9 8.0 13 0
10 2 9.9 8.0 9 0
10 3 10.0 8.1 12 0
10 4 10.1 8.1 10 0
10 5 10.1 8.2 12 0
10 6 10.0 8.1 16 0
;
run;
ods graphics on;
proc genmod data=Crash; class ID year;
model accident= major minor/dist=nb link=log
offset=wt type3 wald;
assess link / crpanel;
run;
quit;
ods graphics off;
2 REPLIES 2
ballardw
Super User
It looks like you are missing a PLOTS = option to request the actual plots.
ArtC
Rhodochrosite | Level 12
try adding a ods destination.
[pre]
ods graphics on;
ods pdf body= 'c:\temp\genplot.pdf';
proc genmod data=Crash; class ID year;
model accident= major minor/dist=nb link=log
offset=wt type3 wald;
assess link / crpanel;
run;
quit;
ods pdf close;
[/pre]

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1541 views
  • 0 likes
  • 3 in conversation