<?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: SAS Studio Testing slope=1 in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Testing-slope-1/m-p/459848#M5434</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188910"&gt;@WilliamBoecklen&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;How do I test a null hypothesis of slope=1 in linear regression?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried Test x=1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It did not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So where is the actual regression you used?&lt;/P&gt;
&lt;P&gt;Example data might help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;FONT color="#ff0000" size="4"&gt;It did not&amp;nbsp;work" &lt;/FONT&gt;is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat&lt;/A&gt;... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps comparing the results of the different output between these two calls to proc reg will help.&lt;/P&gt;
&lt;P&gt;Pay particular attention to the last 3 tables generated as they are the results of the TEST= options. Large F values or small p-values (Pr&amp;gt;F) indicate the tested value is likely not the parameter for the variable.&lt;/P&gt;
&lt;PRE&gt;proc reg data=sashelp.class;
   model Weight = Height;
   title 'without  test';
run;quit;title;

proc reg data=sashelp.class;
   model Weight = Height;
   hgt1: test height=1;
   hgt3_5: test height=3.5;
   hgt3_8: test height=3.8;
   title 'with  test';
run;quit;title;
&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 May 2018 20:56:43 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2018-05-03T20:56:43Z</dc:date>
    <item>
      <title>SAS Studio Testing slope=1</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Testing-slope-1/m-p/459828#M5433</link>
      <description>&lt;P&gt;How do I test a null hypothesis of slope=1 in linear regression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried Test x=1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It did not work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 03 May 2018 20:13:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Testing-slope-1/m-p/459828#M5433</guid>
      <dc:creator>WilliamBoecklen</dc:creator>
      <dc:date>2018-05-03T20:13:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Testing slope=1</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Testing-slope-1/m-p/459848#M5434</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/188910"&gt;@WilliamBoecklen&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;How do I test a null hypothesis of slope=1 in linear regression?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried Test x=1;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It did not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;So where is the actual regression you used?&lt;/P&gt;
&lt;P&gt;Example data might help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;FONT color="#ff0000" size="4"&gt;It did not&amp;nbsp;work" &lt;/FONT&gt;is awful vague.&lt;BR /&gt;&lt;BR /&gt;Are there errors in the log?: Post the code and log in a code box opened with the {i} to maintain formatting of error messages.&lt;BR /&gt;&lt;BR /&gt;No output? Post any log in a code box.&lt;BR /&gt;&lt;BR /&gt;Unexpected output? Provide input data in the form of data step code pasted into a code box, the actual results and the expected results. Instructions here: &lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-dat&lt;/A&gt;... will show how to turn an existing SAS data set into data step code that can be pasted into a forum code box using the {i} icon or attached as text to show exactly what you have and that we can test code against.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps comparing the results of the different output between these two calls to proc reg will help.&lt;/P&gt;
&lt;P&gt;Pay particular attention to the last 3 tables generated as they are the results of the TEST= options. Large F values or small p-values (Pr&amp;gt;F) indicate the tested value is likely not the parameter for the variable.&lt;/P&gt;
&lt;PRE&gt;proc reg data=sashelp.class;
   model Weight = Height;
   title 'without  test';
run;quit;title;

proc reg data=sashelp.class;
   model Weight = Height;
   hgt1: test height=1;
   hgt3_5: test height=3.5;
   hgt3_8: test height=3.8;
   title 'with  test';
run;quit;title;
&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 May 2018 20:56:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Testing-slope-1/m-p/459848#M5434</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-05-03T20:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Testing slope=1</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Testing-slope-1/m-p/460212#M5454</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;ods noproctitle;&lt;BR /&gt;ods graphics / imagemap=on;&lt;BR /&gt;&lt;BR /&gt;proc reg data=WORK.PROJECT2 alpha=0.05 plots(only)=(diagnostics residuals &lt;BR /&gt;		fitplot observedbypredicted);&lt;BR /&gt;	model Professor=Student /;&lt;BR /&gt;	test Student=1;&lt;BR /&gt;	run;&lt;BR /&gt;quit;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The line, "test student=1" does not change the output from that generated without that statement.&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 23:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Testing-slope-1/m-p/460212#M5454</guid>
      <dc:creator>WilliamBoecklen</dc:creator>
      <dc:date>2018-05-04T23:42:49Z</dc:date>
    </item>
  </channel>
</rss>

