<?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 Calculating the standardized difference for an interval in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-the-standardized-difference-for-an-interval/m-p/527675#M26675</link>
    <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to test whether&amp;nbsp;the distribution of reported earnings around zero earnings is abnormal just to the left of zero.&amp;nbsp; In other words, I am looking for irregularity near zero earnings. To test the significance of irregularity, I should calculate the standardized difference which is the difference between the actual number of observations and the expected number of observations in interval &lt;EM&gt;i&lt;/EM&gt;&amp;nbsp;divided by the estimated standard deviation. Now, as you see below, the syntax allows me to do the histogram for the distribution of two variables (&lt;SPAN&gt;Lagearnings1&amp;nbsp;and&amp;nbsp;EB_ACFO&amp;nbsp;) with intervals that have equal width (0.01). But,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I would like to know how to calculate the standardized difference for the interval just left (i.e. -0.01, 0.00) and just right (0.00, +0.01) to zero earnings? I attached a sample of my row data in case you want to test the data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you as always.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ali&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title "Distributions of scaled earnings and earnings before abnormal CFO";&lt;BR /&gt;proc sgplot data=compu_graph_EBACFO;&lt;BR /&gt;histogram Lagearnings1 / binwidth=0.01 binstart= -0.25 showbins transparency=0.4&lt;BR /&gt;name="Scaled earnings" legendlabel="Scaled earnings";&lt;BR /&gt;histogram EB_ACFO / binwidth=0.01 binstart= -0.25 showbins transparency=0.5&lt;BR /&gt;name="Earnings before abnormal CFO" legendlabel="Earnings before abnormal CFO";&lt;BR /&gt;density Lagearnings1 / type=kernel lineattrs=GraphData1; /* optional */&lt;BR /&gt;density EB_ACFO / type=kernel lineattrs=GraphData2; /* optional */&lt;BR /&gt;xaxis values= (-0.25 to +0.25 by 0.01);&lt;BR /&gt;xaxis label="Interval width (0.01)" min=-0.25;&lt;BR /&gt;keylegend "Scaled earnings" "Earnings before abnormal CFO" / across=1 position=TopRight location=Inside;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Jan 2019 10:25:04 GMT</pubDate>
    <dc:creator>Almutairi</dc:creator>
    <dc:date>2019-01-16T10:25:04Z</dc:date>
    <item>
      <title>Calculating the standardized difference for an interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-the-standardized-difference-for-an-interval/m-p/527675#M26675</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to test whether&amp;nbsp;the distribution of reported earnings around zero earnings is abnormal just to the left of zero.&amp;nbsp; In other words, I am looking for irregularity near zero earnings. To test the significance of irregularity, I should calculate the standardized difference which is the difference between the actual number of observations and the expected number of observations in interval &lt;EM&gt;i&lt;/EM&gt;&amp;nbsp;divided by the estimated standard deviation. Now, as you see below, the syntax allows me to do the histogram for the distribution of two variables (&lt;SPAN&gt;Lagearnings1&amp;nbsp;and&amp;nbsp;EB_ACFO&amp;nbsp;) with intervals that have equal width (0.01). But,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I would like to know how to calculate the standardized difference for the interval just left (i.e. -0.01, 0.00) and just right (0.00, +0.01) to zero earnings? I attached a sample of my row data in case you want to test the data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you as always.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Ali&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;title "Distributions of scaled earnings and earnings before abnormal CFO";&lt;BR /&gt;proc sgplot data=compu_graph_EBACFO;&lt;BR /&gt;histogram Lagearnings1 / binwidth=0.01 binstart= -0.25 showbins transparency=0.4&lt;BR /&gt;name="Scaled earnings" legendlabel="Scaled earnings";&lt;BR /&gt;histogram EB_ACFO / binwidth=0.01 binstart= -0.25 showbins transparency=0.5&lt;BR /&gt;name="Earnings before abnormal CFO" legendlabel="Earnings before abnormal CFO";&lt;BR /&gt;density Lagearnings1 / type=kernel lineattrs=GraphData1; /* optional */&lt;BR /&gt;density EB_ACFO / type=kernel lineattrs=GraphData2; /* optional */&lt;BR /&gt;xaxis values= (-0.25 to +0.25 by 0.01);&lt;BR /&gt;xaxis label="Interval width (0.01)" min=-0.25;&lt;BR /&gt;keylegend "Scaled earnings" "Earnings before abnormal CFO" / across=1 position=TopRight location=Inside;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 10:25:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculating-the-standardized-difference-for-an-interval/m-p/527675#M26675</guid>
      <dc:creator>Almutairi</dc:creator>
      <dc:date>2019-01-16T10:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the standardized difference for an interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-the-standardized-difference-for-an-interval/m-p/527678#M26676</link>
      <description>&lt;P&gt;In order to calculate "&lt;SPAN&gt;expected number of observations in interval," you must specify a statistical hypothesis that you can test. What model are you using? Are you looking for a deviation from&amp;nbsp;normality?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 11:43:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculating-the-standardized-difference-for-an-interval/m-p/527678#M26676</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2019-01-16T11:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating the standardized difference for an interval</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Calculating-the-standardized-difference-for-an-interval/m-p/527683#M26677</link>
      <description>&lt;P&gt;Yes, please you can do. Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ali&lt;/P&gt;</description>
      <pubDate>Wed, 16 Jan 2019 11:38:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Calculating-the-standardized-difference-for-an-interval/m-p/527683#M26677</guid>
      <dc:creator>Almutairi</dc:creator>
      <dc:date>2019-01-16T11:38:59Z</dc:date>
    </item>
  </channel>
</rss>

