<?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: Adding values to existing variables in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Adding-values-to-existing-variables/m-p/536327#M6620</link>
    <description>Do you know how to create a new data set with a new set of values for x1, x2, and x3?&lt;BR /&gt;&lt;BR /&gt;Do you know how to combine two SAS data sets?&lt;BR /&gt;&lt;BR /&gt;Do you know how to add a formula to assign a value to y?&lt;BR /&gt;&lt;BR /&gt;These are all simple things to do.  It's just difficult to see which pieces you know and which you don't know.</description>
    <pubDate>Mon, 18 Feb 2019 01:44:30 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2019-02-18T01:44:30Z</dc:date>
    <item>
      <title>Adding values to existing variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Adding-values-to-existing-variables/m-p/536307#M6618</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have a regression model of the form y=B1*x1 + B2*x2 + B3*x3 . There are equal number of observations for all the x variables. Now I want to predict a value of Y with the specific values of x-variables, that are not in the given data set. My question is how do I add values to x1,x2,x3 along with the existing values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be clear, suppose x1,x2,x3 each have 20 values. how do I add the 21st observation for each of them so that i get predicted value of y at those x-points.&lt;/P&gt;&lt;P&gt;I know this is a crude way of getting a predicted value from&amp;nbsp; a regression model.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 00:52:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Adding-values-to-existing-variables/m-p/536307#M6618</guid>
      <dc:creator>arsinha</dc:creator>
      <dc:date>2019-02-18T00:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding values to existing variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Adding-values-to-existing-variables/m-p/536311#M6619</link>
      <description>&lt;P&gt;Here's a full write up of two different approaches.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/19/scoring-a-regression-model-in-sas.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2014/02/17/the-missing-value-trick-for-scoring-a-regression-model.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/257204"&gt;@arsinha&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello!&lt;/P&gt;
&lt;P&gt;I have a regression model of the form y=B1*x1 + B2*x2 + B3*x3 . There are equal number of observations for all the x variables. Now I want to predict a value of Y with the specific values of x-variables, that are not in the given data set. My question is how do I add values to x1,x2,x3 along with the existing values.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To be clear, suppose x1,x2,x3 each have 20 values. how do I add the 21st observation for each of them so that i get predicted value of y at those x-points.&lt;/P&gt;
&lt;P&gt;I know this is a crude way of getting a predicted value from&amp;nbsp; a regression model.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank You.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Feb 2019 01:17:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Adding-values-to-existing-variables/m-p/536311#M6619</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-18T01:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding values to existing variables</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Adding-values-to-existing-variables/m-p/536327#M6620</link>
      <description>Do you know how to create a new data set with a new set of values for x1, x2, and x3?&lt;BR /&gt;&lt;BR /&gt;Do you know how to combine two SAS data sets?&lt;BR /&gt;&lt;BR /&gt;Do you know how to add a formula to assign a value to y?&lt;BR /&gt;&lt;BR /&gt;These are all simple things to do.  It's just difficult to see which pieces you know and which you don't know.</description>
      <pubDate>Mon, 18 Feb 2019 01:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Adding-values-to-existing-variables/m-p/536327#M6620</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-02-18T01:44:30Z</dc:date>
    </item>
  </channel>
</rss>

