<?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: How to Change Continuous Variable to Discrete in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847674#M41983</link>
    <description>&lt;P&gt;Can you elaborate more&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Dec 2022 22:15:10 GMT</pubDate>
    <dc:creator>user1359</dc:creator>
    <dc:date>2022-12-04T22:15:10Z</dc:date>
    <item>
      <title>How to Change Continuous Variable to Discrete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847661#M41981</link>
      <description>&lt;P&gt;I don't know how to change my continous (yob) variable to discrete. I wanted the categories to look like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;2001-1984 (21-32)&lt;/P&gt;&lt;P&gt;1983-1973 (33-43)&lt;/P&gt;&lt;P&gt;1972-1962 (50-60)&lt;/P&gt;&lt;P&gt;1961-1951 (61-71)&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 20:23:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847661#M41981</guid>
      <dc:creator>user1359</dc:creator>
      <dc:date>2022-12-04T20:23:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Continuous Variable to Discrete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847667#M41982</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value yobf 1951-1962='61-71'
        1962-1972='50-60'
        1973-1983='33-43'
        1984-2001='21-32';
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then in a data step or PROC, you assign the format to the variable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;format yob yobf.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 04 Dec 2022 21:01:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847667#M41982</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-04T21:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Continuous Variable to Discrete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847674#M41983</link>
      <description>&lt;P&gt;Can you elaborate more&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 22:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847674#M41983</guid>
      <dc:creator>user1359</dc:creator>
      <dc:date>2022-12-04T22:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Continuous Variable to Discrete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847676#M41984</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
    value msrpf 0-25000='0-25K' 25000&amp;lt;-50000='25K-50K' 50000&amp;lt;-high='&amp;gt;50K';
run;

proc print data=sashelp.cars(obs=15);
    var make model msrp;
    format msrp msrpf.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="PaigeMiller_0-1670192617841.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/78003iEDF2944D07A8A0CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="PaigeMiller_0-1670192617841.png" alt="PaigeMiller_0-1670192617841.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2022 22:23:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847676#M41984</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-12-04T22:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Continuous Variable to Discrete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847806#M41994</link>
      <description>&lt;P&gt;Why do you want to discretize a continuous variable, other than to throw away valuable information?&amp;nbsp; See&amp;nbsp;&lt;EM&gt;Regression Modeling Strategies&lt;/EM&gt;, By Frank Harrell for reasons to avoid doing this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 15:30:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847806#M41994</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2022-12-05T15:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to Change Continuous Variable to Discrete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847940#M42005</link>
      <description>&lt;P&gt;Just want to add a note that, FORMAT only changes how MSRP looks, not the real values of MSRP. So MSRP is still a numeric variable, not a discrete or categorical variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2022 20:39:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-Change-Continuous-Variable-to-Discrete/m-p/847940#M42005</guid>
      <dc:creator>RosieSAS</dc:creator>
      <dc:date>2022-12-05T20:39:32Z</dc:date>
    </item>
  </channel>
</rss>

