Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Home
- /
- Programming
- /
- Graphics
- /
- Re: proc plm effectplot contour: how to generate plot for one value of...

Options

- RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page

🔒 This topic is **solved** and **locked**.
Need further help from the community? Please
sign in and ask a **new** question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Posted 01-27-2019 09:14 PM
(1011 views)

```
proc logistic data=HEERDT.VPICU_label;
model VP_ICU1_VasoNE_012(ref='0')= Ind_DBP1|Age/ nooddsratio link=glogit;
store logimodel;
run;
proc plm source=logiModel ;
effectplot contour(x= Ind_DBP1 y=Age plotby=VP_ICU1_VasoNE_012 );
run;
```

I'm generating the following image, but just want to get a publication quality image for the value of `VP_ICU1_VasoNE_012 =2.`

`Since this is the outcome, I cant find an option using plotby = to just generate this image.`

`Sounds like a question for Rick:-)`

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

I can't open the pdf for some reason. However, I think the values in the EFFECTPLOT statement are restricted to the explanatory variables. It sounds like you want to plot the probability for a particular level of a multinomial response variable. If so, use the UNPACK option to put each response level in its own graph. You might also want to use the ILINK option to get the contours on the probability scale. Here's an example:

```
proc logistic data=sashelp.cars;
model origin(ref="Asia")= mpg_city|weight / nooddsratio link=glogit;
store logimodel;
run;
proc plm source=logiModel ;
effectplot contour(x=mpg_city y=Weight) / ilink unpack;
run;
```

2 REPLIES 2

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

I can't open the pdf for some reason. However, I think the values in the EFFECTPLOT statement are restricted to the explanatory variables. It sounds like you want to plot the probability for a particular level of a multinomial response variable. If so, use the UNPACK option to put each response level in its own graph. You might also want to use the ILINK option to get the contours on the probability scale. Here's an example:

```
proc logistic data=sashelp.cars;
model origin(ref="Asia")= mpg_city|weight / nooddsratio link=glogit;
store logimodel;
run;
proc plm source=logiModel ;
effectplot contour(x=mpg_city y=Weight) / ilink unpack;
run;
```

- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content

Thanks Rick.

Not quite sure I understand what the link function does. I tried it with and without, but the output looked the same.

This is the image I came up with:

**Available on demand!**

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

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.