<?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 SMDCR - measures - proc freq in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/SMDCR-measures-proc-freq/m-p/803451#M39490</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=base noprint;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; tables &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#08726d"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*def&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;/ measures;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;by date;&lt;/P&gt;
&lt;P&gt;output out=Resul_GINI measures;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doubting the variables used, because I have a database that has all the observations, in which: date = month/year, var = rating (category From A to H) and def = default marking (0 or 1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have another basis which is the frequency of these cases, on which date, var, and def = amount of "1".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This right of which way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Mar 2022 20:12:21 GMT</pubDate>
    <dc:creator>Thalitacosta</dc:creator>
    <dc:date>2022-03-22T20:12:21Z</dc:date>
    <item>
      <title>SMDCR - measures - proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SMDCR-measures-proc-freq/m-p/803451#M39490</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc freq data=base noprint;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; tables &lt;/FONT&gt;&lt;FONT face="Courier New" size="3" color="#08726d"&gt;var&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;*def&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;/ measures;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;by date;&lt;/P&gt;
&lt;P&gt;output out=Resul_GINI measures;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am doubting the variables used, because I have a database that has all the observations, in which: date = month/year, var = rating (category From A to H) and def = default marking (0 or 1).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have another basis which is the frequency of these cases, on which date, var, and def = amount of "1".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This right of which way?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 20:12:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SMDCR-measures-proc-freq/m-p/803451#M39490</guid>
      <dc:creator>Thalitacosta</dc:creator>
      <dc:date>2022-03-22T20:12:21Z</dc:date>
    </item>
    <item>
      <title>Re: SMDCR - measures - proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SMDCR-measures-proc-freq/m-p/803460#M39491</link>
      <description>&lt;P&gt;I don't understand the question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You say you are doubting the variables used, but you don't explain why you are doubting them or what makes you doubtful. You also don't explain what this analysis is supposed to do, and what you would like to learn from this analysis.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 21:51:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SMDCR-measures-proc-freq/m-p/803460#M39491</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-22T21:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: SMDCR - measures - proc freq</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/SMDCR-measures-proc-freq/m-p/803476#M39496</link>
      <description>&lt;P&gt;When you use a tables statement like&lt;/P&gt;
&lt;PRE&gt;tables var*def/ measures;&lt;/PRE&gt;
&lt;P&gt;If either Var or Def has missing values then both value from that record will be excluded. Did you see anything in your output about "missing values"?&lt;/P&gt;
&lt;P&gt;So if you compare the counts from something else that does the variables alone the count will not match.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Run this code for a brief example:&lt;/P&gt;
&lt;PRE&gt;data example;
   input x y;
datalines;
1 2
1 3
1 .
2 1
. 2
2 2
;

proc freq data = example;
   tables x y;
   tables x*y;
run;&lt;/PRE&gt;
&lt;P&gt;The tables that have the individual counts of x and y both say there are 5 values of each. But the table from X*Y only shows 4 each because of the missing values in the pairs.&lt;/P&gt;
&lt;P&gt;If you want to force the counts to match you can add the /missing&amp;nbsp; option to the Tables statement. However that means that missing becomes a category in the analysis and may not be desired for other reasons.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Mar 2022 23:26:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/SMDCR-measures-proc-freq/m-p/803476#M39496</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-03-22T23:26:17Z</dc:date>
    </item>
  </channel>
</rss>

