<?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 Statistical from many &amp;quot;Observations Groups&amp;quot; of a single variable in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Statistical-from-many-quot-Observations-Groups-quot/m-p/121575#M259797</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Suppose one data set named "a" with only one variable named "var1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variable ("var1") has more than 10.000 observations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the mean, median, stdev,... of this variable, but ranging from obs1 to obs100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, to the same calculation, but using the range obs101 to obs201, and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would be a simple way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use "firstobs=" and "obs=" with "DO"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 25 Aug 2013 17:44:14 GMT</pubDate>
    <dc:creator>Wagner_Alvarenga</dc:creator>
    <dc:date>2013-08-25T17:44:14Z</dc:date>
    <item>
      <title>Calculating Statistical from many "Observations Groups" of a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Statistical-from-many-quot-Observations-Groups-quot/m-p/121575#M259797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Suppose one data set named "a" with only one variable named "var1".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This variable ("var1") has more than 10.000 observations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to calculate the mean, median, stdev,... of this variable, but ranging from obs1 to obs100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, to the same calculation, but using the range obs101 to obs201, and so on...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would be a simple way to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to use "firstobs=" and "obs=" with "DO"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Aug 2013 17:44:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Statistical-from-many-quot-Observations-Groups-quot/m-p/121575#M259797</guid>
      <dc:creator>Wagner_Alvarenga</dc:creator>
      <dc:date>2013-08-25T17:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Statistical from many "Observations Groups" of a single variable</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Calculating-Statistical-from-many-quot-Observations-Groups-quot/m-p/121576#M259798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not just use mod to create a new variable and then use it as either a class or by variable with proc means?&amp;nbsp; e.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data need;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set a;&lt;/P&gt;&lt;P&gt;&amp;nbsp; group=ceil(_n_/100);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Aug 2013 18:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Calculating-Statistical-from-many-quot-Observations-Groups-quot/m-p/121576#M259798</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2013-08-25T18:45:13Z</dc:date>
    </item>
  </channel>
</rss>

