<?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: finding point and perameter estimate using proc ttest in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803896#M39542</link>
    <description>So PRICE = β0 +β1 POOL +β2(SIZE −2200)+ε the code would have to use proc reg instead of proc glm?</description>
    <pubDate>Thu, 24 Mar 2022 20:11:10 GMT</pubDate>
    <dc:creator>saza</dc:creator>
    <dc:date>2022-03-24T20:11:10Z</dc:date>
    <item>
      <title>finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803873#M39537</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Consider the following simple linear regression model:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;PRICE &lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;β&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt;0 &lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;β&lt;/SPAN&gt;&lt;/I&gt;&lt;SPAN&gt;1 &lt;/SPAN&gt;&lt;SPAN&gt;POOL &lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;I&gt;&lt;SPAN&gt;ε&lt;/SPAN&gt;&lt;/I&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In the data set, verify that POOL is 1 if a house has a swimming pool, 0 otherwise. Using the proc ttest output, complete the table below.&amp;nbsp;&amp;nbsp;&lt;STRONG&gt;Use only the proc ttest&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;output.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saza_0-1648148893155.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69760iD42E99DDB67161F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saza_0-1648148893155.png" alt="saza_0-1648148893155.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I was trained to use proc reg on a question like this but was asked to use proc t-test. I think this should be my code since "1" means there is a pool and "0" means there isn't a pool&lt;/P&gt;
&lt;PRE&gt;proc ttest data=sarah.homeprices;&lt;BR /&gt;var price;&lt;BR /&gt;class pool;&lt;BR /&gt;run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="saza_1-1648148916153.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/69761i82EB56F30B26EF09/image-size/medium?v=v2&amp;amp;px=400" role="button" title="saza_1-1648148916153.png" alt="saza_1-1648148916153.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The problem is that when I run a proc ttest I don't see the model parameter or point estimate like proc reg&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 19:09:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803873#M39537</guid>
      <dc:creator>saza</dc:creator>
      <dc:date>2022-03-24T19:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803876#M39538</link>
      <description>&lt;P&gt;When POOL=1, the mean is 163050. When POOL=0, the mean is 169672. Therefore, the difference is –6622. This would be the point estimate. From there, you can read the confidence interval from the table, making sure to change the sign.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 19:14:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803876#M39538</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-03-24T19:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803877#M39539</link>
      <description>So I was able to run a proc reg to get my answer for the perameter estimate to be -6622 but was wondering how the -6622 came to be. Thank you for explaining that! Is the perameter estimate the same as point estimate?</description>
      <pubDate>Thu, 24 Mar 2022 19:16:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803877#M39539</guid>
      <dc:creator>saza</dc:creator>
      <dc:date>2022-03-24T19:16:31Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803880#M39540</link>
      <description>&lt;P&gt;Yes. Most estimates are "point estimates" with the exception of confidence intervals, which we call "interval estimates."&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The equivalent regression code is not PROC REG because PROC REG does not support a CLASS statement. The equivalent regression procedure is PROC GLM. Compare your TTEST output to the output of this call to PROC GLM:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc GLM data=sarah.homeprices plots=none;
class pool;
model price = pool / solution;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Mar 2022 19:20:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803880#M39540</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-03-24T19:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803896#M39542</link>
      <description>So PRICE = β0 +β1 POOL +β2(SIZE −2200)+ε the code would have to use proc reg instead of proc glm?</description>
      <pubDate>Thu, 24 Mar 2022 20:11:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803896#M39542</guid>
      <dc:creator>saza</dc:creator>
      <dc:date>2022-03-24T20:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803900#M39544</link>
      <description>&lt;P&gt;Neither procedure has syntax for the term&amp;nbsp;&lt;SPAN&gt;β2(SIZE −2200). You would need to create a new variable (SIZE22 = SIZE - 2200) and then use that variable in the model.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In general, PROC GLM can fit all the linear models that PROC REG fits. GLM is more useful when you have classification variables that contain more than two levels or when you have character variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 20:27:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803900#M39544</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-03-24T20:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803908#M39547</link>
      <description>data newprices;&lt;BR /&gt;set sarah.homeprices;&lt;BR /&gt;size2200 = (size - 2200);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc reg data=newprices;&lt;BR /&gt;model price = size2200 pool;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;for some reason its making a new dataset with just the variable size2200</description>
      <pubDate>Thu, 24 Mar 2022 21:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803908#M39547</guid>
      <dc:creator>saza</dc:creator>
      <dc:date>2022-03-24T21:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803909#M39548</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;for some reason its making a new dataset with just the variable size2200&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;??? The NEWPRICES data set should contain all the original variables, plus the new SIZE2200 variable.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Mar 2022 21:32:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803909#M39548</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-03-24T21:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803910#M39549</link>
      <description>Thats exactly my confusion. I'm trying to post what I get when I run the following code:&lt;BR /&gt;data newprices;&lt;BR /&gt;set sarah.homeprices;&lt;BR /&gt;size2200 = (size - 2200);&lt;BR /&gt;run;&lt;BR /&gt;For some reason the screenshot won't paste but its basically a blank table. I ran my libname again and it still  the same.</description>
      <pubDate>Thu, 24 Mar 2022 21:37:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803910#M39549</guid>
      <dc:creator>saza</dc:creator>
      <dc:date>2022-03-24T21:37:53Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803916#M39550</link>
      <description>&lt;P&gt;Run&amp;nbsp;&lt;BR /&gt;PROC CONTENTS data=&lt;SPAN&gt;sarah.homeprices; run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is it possible that you accidentally overwrote&amp;nbsp;sarah.homeprices?&amp;nbsp; Sometimes novices try to modify a data set in place like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* DON'T DO THIS. A MISTAKE CAN DELETE THE DATA */
data sarah.homeprices;
set sarah.homeprices;
/* more lines go here....
   but an ERROR muight result in overwriting the data with 0 obs */
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Mar 2022 22:01:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/803916#M39550</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-03-24T22:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/804084#M39564</link>
      <description>I was able to obtain my point estimate and parameter model value using the following code you guided me through however, I was wondering if I can obtain the CI 95% intervals by manipulating this code?&lt;BR /&gt;data newprices;&lt;BR /&gt;set sarah.homeprices;&lt;BR /&gt;size2200 = (size - 2200);&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;proc reg data=newprices;&lt;BR /&gt;model price = size2200 pool;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;I tried running a proc ttest but it would not let me use my new variable 'size2200' since it has two levels</description>
      <pubDate>Fri, 25 Mar 2022 14:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/804084#M39564</guid>
      <dc:creator>saza</dc:creator>
      <dc:date>2022-03-25T14:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: finding point and perameter estimate using proc ttest</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/804096#M39565</link>
      <description>&lt;P&gt;95% confidence limits for what? The regression coefficients? You can use&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;model price = size2200 pool / CLB;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://go.documentation.sas.com/doc/en/pgmsascdc/v_021/statug/statug_reg_syntax08.htm" target="_self"&gt;The documentation for PROC REG&lt;/A&gt;&amp;nbsp;discusses other options that produce different confidence intervals. Please read about the options on the MODEL statement.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Mar 2022 14:55:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/finding-point-and-perameter-estimate-using-proc-ttest/m-p/804096#M39565</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-03-25T14:55:52Z</dc:date>
    </item>
  </channel>
</rss>

