<?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 automatically get the smaple size n and compute 1/n *X in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-automatically-get-the-smaple-size-n-and-compute-1-n-X/m-p/132238#M260709</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are lots of way to get it. Here is one way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let dsid=%sysfunc(open(sashelp.class));&lt;/P&gt;&lt;P&gt;%let nobs=%sysfunc(attrn(&amp;amp;dsid,nlobs));&lt;/P&gt;&lt;P&gt;%let dsid=%sysfunc(close(&amp;amp;dsid));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;nobs ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Jul 2013 01:56:35 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2013-07-12T01:56:35Z</dc:date>
    <item>
      <title>how to automatically get the smaple size n and compute 1/n *X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-automatically-get-the-smaple-size-n-and-compute-1-n-X/m-p/132237#M260708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have this data set&lt;/P&gt;&lt;P&gt;S&lt;/P&gt;&lt;P&gt;1&lt;/P&gt;&lt;P&gt;2&lt;/P&gt;&lt;P&gt;4&lt;/P&gt;&lt;P&gt;3&lt;/P&gt;&lt;P&gt;6&lt;/P&gt;&lt;P&gt;17&lt;/P&gt;&lt;P&gt;I what t0 compute&amp;nbsp; T=1/n * S,&lt;/P&gt;&lt;P&gt;For this it looks easy because&amp;nbsp; n=5 (since there are five observations). But I have many data with varying ‘n’, so I want SAS to count and get the n for each data then compute T=1/n *S;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2013 22:57:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-automatically-get-the-smaple-size-n-and-compute-1-n-X/m-p/132237#M260708</guid>
      <dc:creator>desireatem</dc:creator>
      <dc:date>2013-07-11T22:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: how to automatically get the smaple size n and compute 1/n *X</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-automatically-get-the-smaple-size-n-and-compute-1-n-X/m-p/132238#M260709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are lots of way to get it. Here is one way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let dsid=%sysfunc(open(sashelp.class));&lt;/P&gt;&lt;P&gt;%let nobs=%sysfunc(attrn(&amp;amp;dsid,nlobs));&lt;/P&gt;&lt;P&gt;%let dsid=%sysfunc(close(&amp;amp;dsid));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put &amp;amp;nobs ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jul 2013 01:56:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-automatically-get-the-smaple-size-n-and-compute-1-n-X/m-p/132238#M260709</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2013-07-12T01:56:35Z</dc:date>
    </item>
  </channel>
</rss>

