<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Question on Proc kde: How to change axes labels in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Question-on-Proc-kde-How-to-change-axes-labels/m-p/556421#M27640</link>
    <description>&lt;P&gt;PROC KDE assumes that both variables are continuous. If Immo_rev is binary, then it doesn't have a continuous density.&amp;nbsp; I suggest you plot the univariate density of Distance for both levels of Immo_rev. You can do this by using PROC UNIVARIATE or by using PROC SGPLOT, as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc univariate data=data;
format Immo_rev Immo_rev.;
class Immo_rev;
var distance;
histogram distance / kernel;
run;

proc sgplot data=data;
format Immo_rev Immo_rev.;
density distance / type=kernel group=Immo_rev;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 06 May 2019 14:02:22 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2019-05-06T14:02:22Z</dc:date>
    <item>
      <title>Question on Proc kde: How to change axes labels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-on-Proc-kde-How-to-change-axes-labels/m-p/555933#M27639</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SAS UE and could not manage to change the axes labels in a surface plot (Proc kde). The variable Immo_rev has two stages '1' and '2', with meaning 'immortalized'&amp;nbsp; and 'not immortalized' but SAS, by default, labels the axis 0.5 / 1.5 / and 2.5.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Figure 6 revised, option 2.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29187iDF7818612717E55E/image-size/large?v=v2&amp;amp;px=999" role="button" title="Figure 6 revised, option 2.png" alt="Figure 6 revised, option 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using Proc format to give labels for Immo_rev, but these did not appear in the surface plot.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is this an issue of SAS UE or an issue of Proc kde? In other words: what am i doing wrong and how to modify the axes labels in a density plot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;********** SAS-code:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc format;&lt;BR /&gt;value Immo_rev&lt;BR /&gt;1 = ‘Immortalization’&lt;BR /&gt;2 = ‘No Immortalization’;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ods graphics on;&lt;/P&gt;&lt;P&gt;proc kde data=data;&lt;BR /&gt;format Immo_rev Immo_rev.;&lt;BR /&gt;bivar distance&amp;nbsp; Immo_rev / plots = surface ;&lt;BR /&gt;&lt;BR /&gt;* axis1 order=(1 to 2 by 1 value=(height=2) label=(height=2 'Immortalization status'); * one attempt that failed ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;quit;&lt;BR /&gt;ods graphics off;&lt;/P&gt;</description>
      <pubDate>Fri, 03 May 2019 13:55:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-on-Proc-kde-How-to-change-axes-labels/m-p/555933#M27639</guid>
      <dc:creator>bneuner</dc:creator>
      <dc:date>2019-05-03T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Question on Proc kde: How to change axes labels</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Question-on-Proc-kde-How-to-change-axes-labels/m-p/556421#M27640</link>
      <description>&lt;P&gt;PROC KDE assumes that both variables are continuous. If Immo_rev is binary, then it doesn't have a continuous density.&amp;nbsp; I suggest you plot the univariate density of Distance for both levels of Immo_rev. You can do this by using PROC UNIVARIATE or by using PROC SGPLOT, as follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc univariate data=data;
format Immo_rev Immo_rev.;
class Immo_rev;
var distance;
histogram distance / kernel;
run;

proc sgplot data=data;
format Immo_rev Immo_rev.;
density distance / type=kernel group=Immo_rev;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 06 May 2019 14:02:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Question-on-Proc-kde-How-to-change-axes-labels/m-p/556421#M27640</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-05-06T14:02:22Z</dc:date>
    </item>
  </channel>
</rss>

