<?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 do I get a column of observation id? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230503#M12163</link>
    <description>&lt;P&gt;I still don't have a column that says X and under it the numbers from 1 through 178.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12023i9D30700E188F773B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="q1.PNG" title="q1.PNG" /&gt;</description>
    <pubDate>Sun, 18 Oct 2015 20:02:42 GMT</pubDate>
    <dc:creator>Mahiya17</dc:creator>
    <dc:date>2015-10-18T20:02:42Z</dc:date>
    <item>
      <title>How do I get a column of observation id?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230491#M12161</link>
      <description>&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;I need x to = 1 - 178 (observations). So far my commands are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* transform consumption and income variables into logs*/&lt;/P&gt;&lt;P&gt;data session3.combinedfiles;&lt;BR /&gt;set session3.combinedfiles;&lt;/P&gt;&lt;P&gt;y=log(PCECC96);&lt;BR /&gt;x1=log(DPIC96);&lt;BR /&gt;x2=log(MPRIME);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* multiple regression model: suppose Y now depends on x1 and x2: Y = beta0+ beta1 x1 + beta2 x2 + error*/&lt;/P&gt;&lt;P&gt;proc reg data=session3.combinedfiles;&lt;BR /&gt;model y = x1 x2;&lt;BR /&gt;output out=session3.est_data1 residual=e predicted=y_hat lcl=lower95 ucl=upper95;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As you can see I don't have a column called X which simply equals id. Thank you for the help.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12022i22762EB6DFB049BD/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="q1.PNG" title="q1.PNG" /&gt;</description>
      <pubDate>Sun, 18 Oct 2015 18:22:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230491#M12161</guid>
      <dc:creator>Mahiya17</dc:creator>
      <dc:date>2015-10-18T18:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a column of observation id?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230501#M12162</link>
      <description>&lt;P&gt;Simply add a statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* transform consumption and income variables into logs*/
data session3.combinedfiles;
set session3.combinedfiles;
y=log(PCECC96);
x1=log(DPIC96);
x2=log(MPRIME);
&lt;FONT color="#FF0000"&gt;ID=_n_;&lt;/FONT&gt;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Oct 2015 19:57:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230501#M12162</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-10-18T19:57:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a column of observation id?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230503#M12163</link>
      <description>&lt;P&gt;I still don't have a column that says X and under it the numbers from 1 through 178.&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12023i9D30700E188F773B/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="q1.PNG" title="q1.PNG" /&gt;</description>
      <pubDate>Sun, 18 Oct 2015 20:02:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230503#M12163</guid>
      <dc:creator>Mahiya17</dc:creator>
      <dc:date>2015-10-18T20:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a column of observation id?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230506#M12164</link>
      <description>&lt;P&gt;Something went wrong. Check the log. You should have a new column called ID in your OUT= dataset.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2015 20:31:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230506#M12164</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2015-10-18T20:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I get a column of observation id?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230508#M12165</link>
      <description>&lt;P&gt;If you want the variable to be named x, then use&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="token keyword"&gt;x &lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;= &lt;/SPAN&gt;_n_&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Oct 2015 20:43:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-do-I-get-a-column-of-observation-id/m-p/230508#M12165</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2015-10-18T20:43:08Z</dc:date>
    </item>
  </channel>
</rss>

