<?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 Using regression to determine a difference in MEANS in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575231#M28256</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to SAS and am going through the basic programming modules. I have a data set and want to show a &lt;EM&gt;difference in the mean&lt;/EM&gt; &lt;STRONG&gt;heights&lt;/STRONG&gt; of men and women for only a specific age (age=20). I know the concept behind the model I need to use which is logistic. I'm not too familiar with SAS to be able produce what I know I need to do. My dataset contains many, many variables and observations, but I filtered the data to only run analysis for age=20. I am working with GENDER (1=male, 2=female), LENGTH (which is &lt;EM&gt;height&lt;/EM&gt;), and AGE (only needing to look at 20).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response is LENTH vs the GENDER of the individuals for a specific AGE. Any suggestions for commands that may help here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cooked up this on SAS (University Edition):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc glm data=hw2.z_final;
	class gender;
	where age=24;
	model length=gender/ effectsize alpha=0.05 Solution;
	run;&lt;/PRE&gt;&lt;P&gt;Thanks in advanced. If I need to clarify, let me know.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 21 Jul 2019 22:19:15 GMT</pubDate>
    <dc:creator>IROCMath</dc:creator>
    <dc:date>2019-07-21T22:19:15Z</dc:date>
    <item>
      <title>Using regression to determine a difference in MEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575231#M28256</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm new to SAS and am going through the basic programming modules. I have a data set and want to show a &lt;EM&gt;difference in the mean&lt;/EM&gt; &lt;STRONG&gt;heights&lt;/STRONG&gt; of men and women for only a specific age (age=20). I know the concept behind the model I need to use which is logistic. I'm not too familiar with SAS to be able produce what I know I need to do. My dataset contains many, many variables and observations, but I filtered the data to only run analysis for age=20. I am working with GENDER (1=male, 2=female), LENGTH (which is &lt;EM&gt;height&lt;/EM&gt;), and AGE (only needing to look at 20).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The response is LENTH vs the GENDER of the individuals for a specific AGE. Any suggestions for commands that may help here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cooked up this on SAS (University Edition):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc glm data=hw2.z_final;
	class gender;
	where age=24;
	model length=gender/ effectsize alpha=0.05 Solution;
	run;&lt;/PRE&gt;&lt;P&gt;Thanks in advanced. If I need to clarify, let me know.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 22:19:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575231#M28256</guid>
      <dc:creator>IROCMath</dc:creator>
      <dc:date>2019-07-21T22:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Using regression to determine a difference in MEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575246#M28257</link>
      <description>&lt;P&gt;This is not&amp;nbsp; a Logistic Regression, it is probably a t-test, which can be performed in either PROC TTEST or PROC GLM (they should give the same answers).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Other than that, it seems like you have done the right thing.&lt;/P&gt;</description>
      <pubDate>Sun, 21 Jul 2019 23:56:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575246#M28257</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-21T23:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using regression to determine a difference in MEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575251#M28258</link>
      <description>&lt;P&gt;Continuous outcome &amp;nbsp;=&amp;gt; GLM, ANOVA, T-TEST&lt;/P&gt;
&lt;P&gt;Categorical or Binary outcome =&amp;gt; LOGISTIC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.tutorialspoint.com/sas/sas_ttests" target="_blank"&gt;https://www.tutorialspoint.com/sas/sas_ttests&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GLM treatment of binary variables can be non-intuitive (check the design matrix in your output) so I recommend PROC ANOVA or TTEST instead.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc anova data=sashelp.cars;
where make in ("Acura", "BMW");
class make;
model mpg_city = make;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282307"&gt;@IROCMath&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm new to SAS and am going through the basic programming modules. I have a data set and want to show a &lt;EM&gt;difference in the mean&lt;/EM&gt; &lt;STRONG&gt;heights&lt;/STRONG&gt; of men and women for only a specific age (age=20). I know the concept behind the model I need to use which is logistic. I'm not too familiar with SAS to be able produce what I know I need to do. My dataset contains many, many variables and observations, but I filtered the data to only run analysis for age=20. I am working with GENDER (1=male, 2=female), LENGTH (which is &lt;EM&gt;height&lt;/EM&gt;), and AGE (only needing to look at 20).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The response is LENTH vs the GENDER of the individuals for a specific AGE. Any suggestions for commands that may help here...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cooked up this on SAS (University Edition):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc glm data=hw2.z_final;
	class gender;
	where age=24;
	model length=gender/ effectsize alpha=0.05 Solution;
	run;&lt;/PRE&gt;
&lt;P&gt;Thanks in advanced. If I need to clarify, let me know.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 01:48:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575251#M28258</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-22T01:48:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using regression to determine a difference in MEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575261#M28260</link>
      <description>&lt;P&gt;hmmm... why did my prof say it was log reg...? Ok, thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 04:48:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575261#M28260</guid>
      <dc:creator>IROCMath</dc:creator>
      <dc:date>2019-07-22T04:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: Using regression to determine a difference in MEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575324#M28261</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/282307"&gt;@IROCMath&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hmmm... why did my prof say it was log reg...? &lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You could ask your prof to explain.&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 10:48:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575324#M28261</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-22T10:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using regression to determine a difference in MEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575348#M28263</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Continuous outcome &amp;nbsp;=&amp;gt; GLM, ANOVA, T-TEST&lt;/P&gt;
&lt;P&gt;Categorical or Binary outcome =&amp;gt; LOGISTIC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.tutorialspoint.com/sas/sas_ttests" target="_blank" rel="noopener"&gt;https://www.tutorialspoint.com/sas/sas_ttests&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GLM treatment of binary variables can be non-intuitive (check the design matrix in your output) so I recommend PROC ANOVA or TTEST instead.&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My usual warning:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although PROC ANOVA will work here in this specific example, it should not be used for most problems of this type. So sayeth &lt;A href="https://documentation.sas.com/?cdcId=pgmmvacdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=statug&amp;amp;docsetTarget=statug_anova_overview.htm&amp;amp;locale=en" target="_self"&gt;the documentation&lt;/A&gt;:&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;Use PROC ANOVA for the analysis of balanced data only, with the following exceptions:&amp;nbsp;&lt;/SPAN&gt;&lt;A id="statug.anova.a0000000008" class="indexterm" target="_blank"&gt;&lt;/A&gt;&lt;SPAN&gt;one-way analysis of variance, Latin square designs, certain partially balanced incomplete block designs, completely nested (hierarchical) designs, and designs with cell frequencies that are proportional to each other and are also proportional to the background population. These exceptions have designs in which the factors are all orthogonal to each other.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Mon, 22 Jul 2019 12:40:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575348#M28263</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-07-22T12:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using regression to determine a difference in MEANS</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575398#M28264</link>
      <description>&lt;P&gt;Are you sure you're interpreting the problem correctly?&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/282307"&gt;@IROCMath&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;hmmm... why did my prof say it was log reg...? Ok, thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jul 2019 14:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Using-regression-to-determine-a-difference-in-MEANS/m-p/575398#M28264</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-07-22T14:52:24Z</dc:date>
    </item>
  </channel>
</rss>

