<?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: Differences in salary men and women in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458519#M5397</link>
    <description>&lt;P&gt;You have not mentioned the names of your data variables.&lt;/P&gt;
&lt;P&gt;Assuming names :&lt;/P&gt;
&lt;PRE&gt;ID    VAR1      VAR2   VAR3     VAR4     GENDER
56	508.007	0	883.694	175.511	 FEMALE
57	530.478	0	  0	  0	 MALE
58	522	0	  0	  0	 MALE&lt;/PRE&gt;
&lt;P&gt;Your code should be like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have noprint;
   class gender;
    var var1 var3 ;   /* or var1 - var4 &amp;lt;&amp;lt; for all 4 numeric variables */
    output out=want &amp;lt;statistics&amp;gt; / &amp;lt;options&amp;gt; ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Pay attention:&amp;nbsp; VAR!-VAR4 is &lt;U&gt;equal&lt;/U&gt; to&amp;nbsp; VAR1 VAR2 VAR3 VAR4.&lt;/P&gt;</description>
    <pubDate>Mon, 30 Apr 2018 05:01:43 GMT</pubDate>
    <dc:creator>Shmuel</dc:creator>
    <dc:date>2018-04-30T05:01:43Z</dc:date>
    <item>
      <title>Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458481#M5389</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my CEO compensation data set I have a variable "gender" which indicates if a CEO is a man or a woman. I would like to find the means between these two groups. How can I untangle these values so that I can observe the two different averages?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what the data look like:&lt;/P&gt;&lt;PRE&gt;	

56	508.007	0	883.694	175.511	FEMALE
57	530.478	0	0	0	MALE
58	522	0	0	0	MALE
59	618.135	0	0	0	MALE
60	540.385	0	0	0	FEMALE
61	569.8	0	0	0	MALE
62	541.087	0	4803.789	0	MALE
63	591.911	0	4199.761	0	MALE
64	551.193	0	4185.64	0	FEMALE
65	581.196	0	4803.789	MALE
66	33.622	0	6606.551	MALE
67	35.724	0	6606.551	MALE
68	42.308	0	15415.27	MALE
69	42.868	0	11010.911	MALE
70	37.826	0	7707.623	MALE
71	563.86	0	2500	0	MALE
72	566.067	0	2500	0	MALE
73	687.884	0	7000	0	MALE
74	642.512	0	4500	0	MALE
75	591.254	0	3000	0	MALE
76	584.178	0	2920	0	MALE
77	584.178	0	2920	0	MALE
78	231.538	0	10330	0	MALE
79	660.375	0	5250	0	MALE
80	609.577	0	3500	0	MALE
81	600.936	0	2575	0	MALE&lt;/PRE&gt;&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Sun, 29 Apr 2018 21:31:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458481#M5389</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-04-29T21:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458502#M5391</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;I basically just want to know how to find the average of both genders separately even though the data is in one variable.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 01:41:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458502#M5391</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-04-30T01:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458505#M5392</link>
      <description>&lt;P&gt;You put your grouping&amp;nbsp;variable in your CLASS statement in PROC MEANS/UNIVARIATE/SUMMARY.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the example here - you can run it yourself to see how it works:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas" target="_blank"&gt;https://github.com/statgeek/SAS-Tutorials/blob/master/proc_means_basic.sas&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 01:59:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458505#M5392</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-30T01:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458513#M5395</link>
      <description>&lt;P&gt;What is going on in the var line?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here's an example from the page you linked:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Create summary data;
proc means data=have noprint;
	by id;
	var feature1-feature3;
	output out=want median= var= mean= /autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;feature1-feature3 ? What is this?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 02:37:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458513#M5395</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-04-30T02:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458519#M5397</link>
      <description>&lt;P&gt;You have not mentioned the names of your data variables.&lt;/P&gt;
&lt;P&gt;Assuming names :&lt;/P&gt;
&lt;PRE&gt;ID    VAR1      VAR2   VAR3     VAR4     GENDER
56	508.007	0	883.694	175.511	 FEMALE
57	530.478	0	  0	  0	 MALE
58	522	0	  0	  0	 MALE&lt;/PRE&gt;
&lt;P&gt;Your code should be like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc means data=have noprint;
   class gender;
    var var1 var3 ;   /* or var1 - var4 &amp;lt;&amp;lt; for all 4 numeric variables */
    output out=want &amp;lt;statistics&amp;gt; / &amp;lt;options&amp;gt; ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Pay attention:&amp;nbsp; VAR!-VAR4 is &lt;U&gt;equal&lt;/U&gt; to&amp;nbsp; VAR1 VAR2 VAR3 VAR4.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 05:01:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458519#M5397</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2018-04-30T05:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458674#M5405</link>
      <description>&lt;P&gt;The data set before - the sample data had the variables listed as Features1, features2, features3.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A short cut way to reference all three at once is features1-features3.&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/177874"&gt;@sastuck&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;What is going on in the var line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here's an example from the page you linked:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Create summary data;
proc means data=have noprint;
	by id;
	var feature1-feature3;
	output out=want median= var= mean= /autoname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;feature1-feature3 ? What is this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 14:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458674#M5405</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-30T14:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458705#M5406</link>
      <description>&lt;P&gt;&lt;FONT color="#ff0000" size="4"&gt;&lt;STRONG&gt;Warning Will Robinson:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;Use of zero for "missing" data will artificially lower your mean salary analysis.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;Since I really doubt that any of those CEOs work for zero salary you probably should either 1)take a pass through a data step to set zero valued salary fields to missing or 2) make sure that you subset the data to records with salary greater than zero in Proc Means/Summary or any analysis.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;If you have multiple salary fields with some 0 and others not then the first approach is likely the better one.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000000" size="3"&gt;A second consideration might be time if the data has the salary for multiple years for a single individual. &lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458705#M5406</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-30T15:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458707#M5407</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;Someone's been watching Lost in Space....:D&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 15:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458707#M5407</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-30T15:46:39Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458728#M5408</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; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;Someone's been watching Lost in Space....:D&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I used to have to stay up late to watch it when it was first broadcast ...&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 16:13:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458728#M5408</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-30T16:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458806#M5415</link>
      <description>&lt;DIV class="proc_title_group"&gt;&lt;P class="c proctitle"&gt;The MEANS Procedure&lt;/P&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;Analysis Variable : SALARYN N Miss&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;74300&lt;/TD&gt;&lt;TD&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like I don't have missing or 0 observations for salary. There are plenty for the other forms of compensation though, but perhaps these should be reflected in the mean?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:20:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458806#M5415</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-04-30T19:20:31Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458810#M5417</link>
      <description>&lt;P&gt;Your sample data shows 0. Are 0, missing, or truly zero. If it's missing, then using zero will deflate your numbers and it will not show up on the PROC MEANS output because 0 is not missing according to SAS.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458810#M5417</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-30T19:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458813#M5419</link>
      <description>&lt;P&gt;yes, those are from the bonus, stock options, etc variables (sorry I didnt include headers). I couldnt find any helpful documentation for this . . . but since there is a salary reported and a (true) zero bonus is possible, I might just assume that they dont represent missing values. Regardless, I still am unsure of how to find the mean for men and women separately. Thanks for the heads up though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458813#M5419</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-04-30T19:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458815#M5421</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177874"&gt;@sastuck&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;DIV class="proc_title_group"&gt;
&lt;P class="c proctitle"&gt;The MEANS Procedure&lt;/P&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;Analysis Variable : SALARYN N Miss&lt;/P&gt;
&lt;TABLE&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD&gt;74300&lt;/TD&gt;
&lt;TD&gt;0&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Looks like I don't have missing or 0 observations for salary. There are plenty for the other forms of compensation though, but perhaps these should be reflected in the mean?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If this relates to my comment about values of 0 included in your means this does not refute it. My concern is that you have &lt;STRONG&gt;values&lt;/STRONG&gt; of zero.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider 5 ceos with salaries of 10000 10000 10000 0 0. Do you want 10000 or 6000 as the "mean"? You have not shown us any way to determine the names of your variables for that given "example" data but 3 of your 4 likely numeric variables have multiple 0 values. (Two of the data columns basically only having 0 or missing). The concern is interpretation if 0 is included in the salary. But as I say again, we do not know which column of your data represents salary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data is best presented in the form of a data step so there is not problem identifying which variables are numeric or character, we have the names of the variables and a data set we can test code against to verify that the results are correct for an example that is small enough to calculate by hand. Such as:&lt;/P&gt;
&lt;PRE&gt;data have;
   input id salary sex $;
datalines;
1  50000 male
2  25000 male
3  44444 female
4  0     female
;
run;

proc means data=have;
   class sex;
   var salary;
run;&lt;/PRE&gt;
&lt;P&gt;So in the above, since there are only two females would desire the "mean" salary to be 44444 or 22222? If 22222 seems wrong and should be 44444 then you need to exclude the values of 0 from the mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Apr 2018 19:39:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/458815#M5421</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-04-30T19:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460035#M5435</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regardless of the missing 0's, could you show me how to show the difference in means given the way my data look? I will consider the 0's later, right now I would just like to see how I can show the difference in means between men and women. Since they are in the same column its not as simple as the proc means I am used to. If you can help, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 13:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460035#M5435</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-05-04T13:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460063#M5436</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/177874"&gt;@sastuck&lt;/a&gt;&amp;nbsp;did you run the code included in&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;post from MONDAY? It is exactly what you asked for.&amp;nbsp;&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/177874"&gt;@sastuck&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regardless of the missing 0's, could you show me how to show the difference in means given the way my data look? I will consider the 0's later, right now I would just like to see how I can show the difference in means between men and women. Since they are in the same column its not as simple as the proc means I am used to. If you can help, thanks!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 14:52:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460063#M5436</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-04T14:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460081#M5437</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;, I don't know how I overlooked that. The code is running now, but is taking a long time (?)&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;mentioned that its data is best presented as a datastep. Could you show me how this is done?&amp;nbsp; For future reference.&amp;nbsp; Thanks for the headsup by the way!&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 15:15:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460081#M5437</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-05-04T15:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460082#M5438</link>
      <description>&lt;P&gt;This is a generic post I've written a while ago that illustrates how to convert your data to a data step to post in the forums:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-to-create-a-data-step-version-of-your-data-AKA-generate/ta-p/258712&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/177874"&gt;@sastuck&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;, I don't know how I overlooked that. The code is running now, but is taking a long time (?)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;mentioned that its data is best presented as a datastep. Could you show me how this is done?&amp;nbsp; For future reference.&amp;nbsp; Thanks for the headsup by the way!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 15:18:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460082#M5438</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-04T15:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460091#M5439</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%data2datastep(CompuStat_Execucomp,practice,,5);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; 1          OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 WARNING: Apparent invocation of macro DATA2DATASTEP not resolved.
 70         
 71         %data2datastep(CompuStat_Execucomp,practice,,5);
            _
            180
 
 ERROR 180-322: Statement is not valid or it is used out of proper order.
 
 72         
 73         OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
 85&lt;/PRE&gt;&lt;P&gt;I'm close, but must be missing something. Any tips?&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 15:39:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460091#M5439</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-05-04T15:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460097#M5441</link>
      <description>&lt;P&gt;You didn’t run the macro first. Make sure to follow the instructions step by step, print it off and check off each line if you have to, since you seem to consistently missing steps that have been identified.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 May 2018 16:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460097#M5441</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-05-04T16:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Differences in salary men and women</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460123#M5442</link>
      <description>&lt;P&gt;I deleted the zero's this time before doing the means, but the mins for both genders are still basically zero. How is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*remove zeros;
data practice.CompuStat_Execucomp;
	set practice.CompuStat_Execucomp2; 
	if salary=. then delete;
run;

title "Table 6. Difference in Means";
title2 "Male and Female CEOs";
proc ttest data=practice.CompuStat_Execucomp;
class gender;
   var salary;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;GENDER	Method	N	Mean	Std Dev	Std Err	Minimum	Maximum
FEMALE	 	        528  873.5	327.3	14.2444	0.00100	 2000.0
MALE	 	      1315 824.4	429.1	3.7423	0	 8100.0
Diff (1-2)	Pooled	 	49.0313	425.7	18.8933	 	 
Diff (1-2)	Satterthwaite	49.0313	 	         14.7278&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 May 2018 18:01:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Differences-in-salary-men-and-women/m-p/460123#M5442</guid>
      <dc:creator>sastuck</dc:creator>
      <dc:date>2018-05-04T18:01:02Z</dc:date>
    </item>
  </channel>
</rss>

