<?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: histogram and qqplot side by side using proc univarriate  not working as it should in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536337#M147382</link>
    <description>&lt;P&gt;Here is an example that works for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.heart out=sortedHeart; by smoking_status; run;

ods pdf file="Brook2_example.pdf";
proc univariate data = sortedHeart noprint;
where smoking_status is not missing;
by smoking_status;
histogram cholesterol; 
qqplot cholesterol; 
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result pdf attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Feb 2019 04:00:25 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2019-02-18T04:00:25Z</dc:date>
    <item>
      <title>histogram and qqplot side by side using proc univarriate  not working as it should</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536282#M147348</link>
      <description>&lt;P&gt;*** Not spam&amp;nbsp; !!!!!&amp;nbsp; real programming question ** Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have data (2584 record)&amp;nbsp; with three columns ( subject , Education level as Educ and income during 2005 as Income2005) and a category of five types under education level&amp;nbsp; ( =12, 13-15 , 16, &amp;lt;12, &amp;gt;16) this is a bucket that contains income for each education distribution at Income2005&amp;nbsp; column&amp;nbsp; . I want to draw Histogram and QQ plot of income 2005 distro side by side for each educ level . why this code is not working ? Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc import datafile='/folders/myfolders/ex0525.csv'&lt;BR /&gt;DBMS=csv out=IncomeData replace;&lt;BR /&gt;run;&lt;BR /&gt;proc print data=IncomeData; &lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc univariate data = incomedata;&lt;BR /&gt; class Educ;&lt;BR /&gt; var income2005;&lt;BR /&gt; run;&lt;BR /&gt; &lt;BR /&gt;** the above code works fine but the below code doesn't plot the 5 histograms and 5 QQ plots  of Income 2005 distribution for each Educ category &lt;BR /&gt;it just spits out Descriptive stat as Educ= 12 , ( there is no error but unneeded output) &lt;BR /&gt;&lt;BR /&gt;proc univariate data = incomedata;&lt;BR /&gt;by Educ;&lt;BR /&gt;histogram income2005; &lt;BR /&gt;qqplot income2005; &lt;BR /&gt;run;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 20:15:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536282#M147348</guid>
      <dc:creator>brook2</dc:creator>
      <dc:date>2019-02-17T20:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: histogram and qqplot side by side using proc univarriate  not working as it should</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536296#M147355</link>
      <description>&lt;P&gt;Note that PROC UNIVARIATE uses the formatted values of the CLASS variables to determine the classification levels, but uses the internal values for BY processing. Problems related to this difference typically generate errors in the SAS log.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Feb 2019 21:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536296#M147355</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-17T21:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: histogram and qqplot side by side using proc univarriate  not working as it should</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536325#M147374</link>
      <description>&lt;P&gt;There is no error generated , it just gives result ( descriptive stat) for the code shown. I want to generate histogram and qq plot side by side. I am expecting a result set showing all his and QQ under each category of Educ ( &amp;lt;12 yrs&amp;nbsp; ,12yrs&amp;nbsp; , 13-15 yrs , 16 yrs&amp;nbsp; , &amp;gt;16 yrs ).Can you help me with a working solution using the code or any other way as an example.Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 01:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536325#M147374</guid>
      <dc:creator>brook2</dc:creator>
      <dc:date>2019-02-18T01:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: histogram and qqplot side by side using proc univarriate  not working as it should</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536337#M147382</link>
      <description>&lt;P&gt;Here is an example that works for me:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data=sashelp.heart out=sortedHeart; by smoking_status; run;

ods pdf file="Brook2_example.pdf";
proc univariate data = sortedHeart noprint;
where smoking_status is not missing;
by smoking_status;
histogram cholesterol; 
qqplot cholesterol; 
run;
ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result pdf attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 04:00:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536337#M147382</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-02-18T04:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: histogram and qqplot side by side using proc univarriate  not working as it should</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536623#M147483</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/462"&gt;@PGStats&lt;/a&gt;&amp;nbsp; Thanks for your time and help . But I am still missing three categories for Educ &amp;lt;12 , Educ 13-15 Educ &amp;gt;16&amp;nbsp; catagory , it is only giving me Educ =12 and Educ =16 , looks like it is not taking the less than or greater than or in between values&amp;nbsp;&lt;/P&gt;&lt;P&gt;I reused the code you posted below ,here is the result&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 01:10:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536623#M147483</guid>
      <dc:creator>brook2</dc:creator>
      <dc:date>2019-02-19T01:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: histogram and qqplot side by side using proc univarriate  not working as it should</title>
      <link>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536624#M147484</link>
      <description>For some reason I cant copy paste my actual code like u did , but I have attached the result set in pdf in the next thread.&lt;BR /&gt;I cant even add the screen shot of the code and attache it as image file !! little weird ! but I have exactly replicated your code!! thanks</description>
      <pubDate>Tue, 19 Feb 2019 01:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/histogram-and-qqplot-side-by-side-using-proc-univarriate-not/m-p/536624#M147484</guid>
      <dc:creator>brook2</dc:creator>
      <dc:date>2019-02-19T01:23:51Z</dc:date>
    </item>
  </channel>
</rss>

