<?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 longitudinal data - mutiple people per person/year in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/longitudinal-data-mutiple-people-per-person-year/m-p/780145#M38286</link>
    <description>&lt;P&gt;&lt;FONT size="4"&gt;Hi, I posted previously (&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/longitudinal-multilevel-analysis-multiple-records-per-person/td-p/772039" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Statistical-Procedures/longitudinal-multilevel-analysis-multiple-records-per-person/td-p/772039&lt;/A&gt;) and got some excellent advice about modeling a longitudinal data set.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Summary: Dependent variable = gender. Independent variables = year and person’s position_department (e.g. Senior – Marketing, Principal-Marketing). The interest is in changes in gender over time.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Received advice to: run a model of year, position_department, and their interaction which worked nicely.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Now, I want to show predicted probabilities for: 1) &lt;SPAN style="font-style: normal;"&gt;&lt;STRONG&gt;ALL&lt;/STRONG&gt;&lt;/SPAN&gt; positions_departments combined (1 plot of gender over time), and 2) by department (vs. by position_department).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Problem: there are duplicate people in a given year because the same person can be associated with more than one position_department. For example, the person below shows up in the data 4 times in a given year (therefore, their gender would be counted 4 times):&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="0" cellspacing="0"&gt;&lt;COLGROUP span="3" width="85"&gt;&lt;/COLGROUP&gt; &lt;COLGROUP width="149"&gt;&lt;/COLGROUP&gt; &lt;COLGROUP span="2" width="85"&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD height="17" align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;person&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;gender&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;year&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;Position-department&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;department&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;position&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="right" style="border: 1px solid #000000;"&gt;1&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;M&lt;/TD&gt;
&lt;TD align="right" style="border: 1px solid #000000;"&gt;2017&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Senior-Marketing&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Marketing&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Senior&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="right" style="border: 1px solid #000000;"&gt;1&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;M&lt;/TD&gt;
&lt;TD align="right" style="border: 1px solid #000000;"&gt;2017&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Principal-Marketing&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Marketing&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Principal&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="right" style="border: 1px solid #000000;"&gt;1&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;M&lt;/TD&gt;
&lt;TD align="right" style="border: 1px solid #000000;"&gt;2017&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Senior-Finance&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Finance&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Senior&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="right" style="border: 1px solid #000000;"&gt;1&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;M&lt;/TD&gt;
&lt;TD align="right" style="border: 1px solid #000000;"&gt;2017&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Principal-Finance&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Finance&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Principal&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;This structure worked for my first question (analysis by position-department), however, if I just look at gender and year for all position-departments this person would be counted 4 times. Seems to be 2 options:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;1) drop the duplicates (which would change the data and total N) and run 2 extra models. 1 extra model for all positions-departments combined after dropping duplicates (so data would have 1 row per person-year); and 1 extra model for analysis by department (data would have 1 row per person, year and department)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;2) use the model previously estimated of year, position_department, and their interaction and output the predicted probabilities at department level and for all position-departments combined, which would give slightly different results since duplicates have not been dropped.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Best option? Any thoughts would be much appreciated. thank you!&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 23:54:49 GMT</pubDate>
    <dc:creator>mjkop56</dc:creator>
    <dc:date>2021-11-15T23:54:49Z</dc:date>
    <item>
      <title>longitudinal data - mutiple people per person/year</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/longitudinal-data-mutiple-people-per-person-year/m-p/780145#M38286</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;Hi, I posted previously (&lt;A href="https://communities.sas.com/t5/Statistical-Procedures/longitudinal-multilevel-analysis-multiple-records-per-person/td-p/772039" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/Statistical-Procedures/longitudinal-multilevel-analysis-multiple-records-per-person/td-p/772039&lt;/A&gt;) and got some excellent advice about modeling a longitudinal data set.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Summary: Dependent variable = gender. Independent variables = year and person’s position_department (e.g. Senior – Marketing, Principal-Marketing). The interest is in changes in gender over time.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Received advice to: run a model of year, position_department, and their interaction which worked nicely.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Now, I want to show predicted probabilities for: 1) &lt;SPAN style="font-style: normal;"&gt;&lt;STRONG&gt;ALL&lt;/STRONG&gt;&lt;/SPAN&gt; positions_departments combined (1 plot of gender over time), and 2) by department (vs. by position_department).&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Problem: there are duplicate people in a given year because the same person can be associated with more than one position_department. For example, the person below shows up in the data 4 times in a given year (therefore, their gender would be counted 4 times):&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE border="0" cellspacing="0"&gt;&lt;COLGROUP span="3" width="85"&gt;&lt;/COLGROUP&gt; &lt;COLGROUP width="149"&gt;&lt;/COLGROUP&gt; &lt;COLGROUP span="2" width="85"&gt;&lt;/COLGROUP&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD height="17" align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;person&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;gender&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;year&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;Position-department&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;department&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;&lt;STRONG&gt;position&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="right" style="border: 1px solid #000000;"&gt;1&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;M&lt;/TD&gt;
&lt;TD align="right" style="border: 1px solid #000000;"&gt;2017&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Senior-Marketing&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Marketing&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Senior&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="right" style="border: 1px solid #000000;"&gt;1&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;M&lt;/TD&gt;
&lt;TD align="right" style="border: 1px solid #000000;"&gt;2017&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Principal-Marketing&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Marketing&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Principal&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="right" style="border: 1px solid #000000;"&gt;1&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;M&lt;/TD&gt;
&lt;TD align="right" style="border: 1px solid #000000;"&gt;2017&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Senior-Finance&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Finance&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Senior&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="17" align="right" style="border: 1px solid #000000;"&gt;1&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;M&lt;/TD&gt;
&lt;TD align="right" style="border: 1px solid #000000;"&gt;2017&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Principal-Finance&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Finance&lt;/TD&gt;
&lt;TD align="left" style="border: 1px solid #000000;"&gt;Principal&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;This structure worked for my first question (analysis by position-department), however, if I just look at gender and year for all position-departments this person would be counted 4 times. Seems to be 2 options:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;1) drop the duplicates (which would change the data and total N) and run 2 extra models. 1 extra model for all positions-departments combined after dropping duplicates (so data would have 1 row per person-year); and 1 extra model for analysis by department (data would have 1 row per person, year and department)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;2) use the model previously estimated of year, position_department, and their interaction and output the predicted probabilities at department level and for all position-departments combined, which would give slightly different results since duplicates have not been dropped.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="4"&gt;Best option? Any thoughts would be much appreciated. thank you!&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 23:54:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/longitudinal-data-mutiple-people-per-person-year/m-p/780145#M38286</guid>
      <dc:creator>mjkop56</dc:creator>
      <dc:date>2021-11-15T23:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: longitudinal data - mutiple people per person/year</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/longitudinal-data-mutiple-people-per-person-year/m-p/780461#M38309</link>
      <description>&lt;P&gt;I like most of option 2.&amp;nbsp; I would consider fitting only the interaction term (with a NOINT option) and then using LSMESTIMATE statements (with an ILINK option) to get at the questions of interest.&amp;nbsp; Both option 2 and this method end up calculating marginal estimates for these effects - the proportions if all cells had an equal number of observations.&amp;nbsp; If you wish to get at the differences on the probability scale, then you will need the %NLmeans macro (and you should read the SAS Note(s) on this and everything&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13633"&gt;@StatDave&lt;/a&gt;&amp;nbsp; has posted on this forum/topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 14:59:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/longitudinal-data-mutiple-people-per-person-year/m-p/780461#M38309</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-11-16T14:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: longitudinal data - mutiple people per person/year</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/longitudinal-data-mutiple-people-per-person-year/m-p/780746#M38337</link>
      <description>&lt;P&gt;Thank you!!! Just so I understand, could you please explain why you would only include an interaction term and not the main effects?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I was planning to plot observed data v. the model's predicted probabilities. For the observed data on gender by year for everyone combined, I had planned to drop the duplicates in a given year, as the same person's gender would be counted multiple times. But if I don't drop duplicates before running the model, is that an issue when making comparisons between the observed data v. predicted?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Nov 2021 14:20:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/longitudinal-data-mutiple-people-per-person-year/m-p/780746#M38337</guid>
      <dc:creator>mjkop56</dc:creator>
      <dc:date>2021-11-17T14:20:09Z</dc:date>
    </item>
  </channel>
</rss>

