<?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 Non contributing variable in multiple linear regression in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Non-contributing-variable-in-multiple-linear-regression/m-p/392692#M20487</link>
    <description>&lt;P&gt;Hi! I'm running a multiple regression procedure, and we were asked to "obtain a 95% interval estimate of the mean rental rate for the following specifications of the explanatory variables:&amp;nbsp;&lt;SPAN&gt;age_of_prop=5, operate_exp=8.5, vacancy_rate=0.15, total_sqft=250000. My issue is that when I create a new data set to obtain this specific information, the dataset returns 0 values, so nothing prints.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is my "AND" boolean logic correct in the IF statement, or should I be using something different to say "this and that and that"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here I've just set up the regression procedure - it outputs to the set "results"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc reg data=cre;&lt;BR /&gt;model rate_per_sq= age_of_prop operate_exp vacancy_rate total_sqft&lt;BR /&gt;/stb clm cli clb alpha = .01;&lt;/P&gt;&lt;P&gt;output out=results predicted=yhat LCLM=LCLMEAN UCLM=UCLMEAN LCL=LCLPRED UCL=UCLPRED STDP=SEmean STDI=SEi;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is where I establish the new dataset. The if statement works if it states something obvious like "IF(1=1 and 2=2)," but I can't get it to return data when I want it to predict the rate_per_sq when the statement is defined as it is below.&lt;/STRONG&gt;&lt;BR /&gt;data results_1;&lt;BR /&gt;set results;&lt;BR /&gt;if(age_of_prop=5 AND operate_exp=8.5 AND vacancy_rate=0.15 AND total_sqft=250000);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=results_1;&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2017 22:11:22 GMT</pubDate>
    <dc:creator>heydaloran</dc:creator>
    <dc:date>2017-09-01T22:11:22Z</dc:date>
    <item>
      <title>Non contributing variable in multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Non-contributing-variable-in-multiple-linear-regression/m-p/392692#M20487</link>
      <description>&lt;P&gt;Hi! I'm running a multiple regression procedure, and we were asked to "obtain a 95% interval estimate of the mean rental rate for the following specifications of the explanatory variables:&amp;nbsp;&lt;SPAN&gt;age_of_prop=5, operate_exp=8.5, vacancy_rate=0.15, total_sqft=250000. My issue is that when I create a new data set to obtain this specific information, the dataset returns 0 values, so nothing prints.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is my "AND" boolean logic correct in the IF statement, or should I be using something different to say "this and that and that"?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here I've just set up the regression procedure - it outputs to the set "results"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc reg data=cre;&lt;BR /&gt;model rate_per_sq= age_of_prop operate_exp vacancy_rate total_sqft&lt;BR /&gt;/stb clm cli clb alpha = .01;&lt;/P&gt;&lt;P&gt;output out=results predicted=yhat LCLM=LCLMEAN UCLM=UCLMEAN LCL=LCLPRED UCL=UCLPRED STDP=SEmean STDI=SEi;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here is where I establish the new dataset. The if statement works if it states something obvious like "IF(1=1 and 2=2)," but I can't get it to return data when I want it to predict the rate_per_sq when the statement is defined as it is below.&lt;/STRONG&gt;&lt;BR /&gt;data results_1;&lt;BR /&gt;set results;&lt;BR /&gt;if(age_of_prop=5 AND operate_exp=8.5 AND vacancy_rate=0.15 AND total_sqft=250000);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=results_1;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 22:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Non-contributing-variable-in-multiple-linear-regression/m-p/392692#M20487</guid>
      <dc:creator>heydaloran</dc:creator>
      <dc:date>2017-09-01T22:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Non contributing variable in multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Non-contributing-variable-in-multiple-linear-regression/m-p/392700#M20490</link>
      <description>&lt;P&gt;Make sure that your input data set has the combination of values that you want to evaluate but make sure that the RATE is missing. I have to assume the your "rental rate" is the rate_per_sq variable since you do not state so explicitly (hint: indicate which variable you mean).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will find the predicted value and the associate confidence limits in your results output set.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2017 23:22:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Non-contributing-variable-in-multiple-linear-regression/m-p/392700#M20490</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-01T23:22:50Z</dc:date>
    </item>
    <item>
      <title>Re: Non contributing variable in multiple linear regression</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Non-contributing-variable-in-multiple-linear-regression/m-p/392790#M20496</link>
      <description>&lt;P&gt;You're right! I forgot that the IF statement can't draw predictive conclusions. it simply looks for and selects the values in the dataset, of which they didn't exist..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I ended up doing is appending the data it requested to the original dataset. Then I ran the same statement and it worked fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Sat, 02 Sep 2017 19:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Non-contributing-variable-in-multiple-linear-regression/m-p/392790#M20496</guid>
      <dc:creator>heydaloran</dc:creator>
      <dc:date>2017-09-02T19:33:58Z</dc:date>
    </item>
  </channel>
</rss>

