<?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: Working with Complex data set PRAMS -How do I exclude cases but not delete in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700318#M33780</link>
    <description>Thank you for your help!!&lt;BR /&gt;</description>
    <pubDate>Thu, 19 Nov 2020 20:06:39 GMT</pubDate>
    <dc:creator>LRamsey</dc:creator>
    <dc:date>2020-11-19T20:06:39Z</dc:date>
    <item>
      <title>Working with Complex data set PRAMS -How do I exclude cases but not delete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700274#M33774</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with a data set called PRAMS and it uses a complex sampling design. It has several racial categories and years. I would like to include one year of data and two racial categories (non-Hispanic). However, from reading it says I cannot delete cases because it will mess up the weighting. How can I exclude cases for the purposes of my analysis? Also, how can I identify non hispanic black and non hispanic white if there are two separate variables. I have a MAT_RACE variable with categories 1, 2,3 (white black other that include non hispanic and hispanic ethnicity) I also have Hispanic BC that includes 1 yes hispanic and 2 not hispanic. What code can I use to create a variable for non hispanic black white and other ( I would like to use this as my analytic sample).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Finally, I have non PRAMS data that I have merged with PRAMS data. I was wondering if I had to create weights for that data as well? My dependent variables (outcomes) come from PRAMS and my independent variables come from another data set that I created and merged with PRAMS data. I am doing a state level analysis..so the outcomes are nested within states. I know that will be a multilevel model. To run the statistical models I have to apply weights to the PRAMS data. Should I also create weights for the other (independent variables) as well?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 17:26:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700274#M33774</guid>
      <dc:creator>LRamsey</dc:creator>
      <dc:date>2020-11-19T17:26:21Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Complex data set PRAMS -How do I exclude cases but not delete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700288#M33775</link>
      <description>&lt;P&gt;Using a single year is not likely to be an issue as long as you are careful to use the entire year and if the data were originally weighted for that year. A multiyear data set may have been weighted differently, so read and understand the weighting methodology for the set used. If you extract a single year from a multiyear it is extremely likely that any statistic that you project to population total (not rates) is way low.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't mention what type of analysis you are wanting. If you want to have the data grouped by values of a category for you may be looking for a DOMAIN statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code to create non-hispanic white and non-hispanic (and should do non-hispanic other) depends to an extent on what you want for a result. Do you want 3 levels, 4 levels, 5 ....&lt;/P&gt;
&lt;PRE&gt;/* create hispanic as separate level with non-hispanic others*/

if hispanic then newvar=1 ; /* or what ever code*/
else select (race);
    when (white) newvar=2;
    when (black) newvar=3;
    when (other) newvar=4;
    other;
end;&lt;/PRE&gt;
&lt;P&gt;use your variables and values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What sort of data did you merge to data set? If you affected the number of records then some sort of reweighting is more likely to be needed and you may have moved your project into the MIXED model world.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 18:13:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700288#M33775</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-19T18:13:43Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Complex data set PRAMS -How do I exclude cases but not delete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700292#M33776</link>
      <description>Hello,&lt;BR /&gt;Thank you for this. I am trying to merge state level criminal justice data&lt;BR /&gt;with the PRAMS data set. I only selected one year of data ( I was advised&lt;BR /&gt;by my committee). I have black/white ratios for example of incarceration&lt;BR /&gt;data (at the state level). I merged the data with PRAMS, so it was an&lt;BR /&gt;addition of variables but not cases. So each woman in the data set will be&lt;BR /&gt;assigned the b/w ratio of incarceration based on the state she lives in.&lt;BR /&gt;One state did not provide the appropriate information, but I'm thinking I&lt;BR /&gt;can exclude it from the analysis ( it has only white vs non white and that&lt;BR /&gt;is not helpful for my research question). Is that correct? Can I exclude&lt;BR /&gt;that state?&lt;BR /&gt;I am new to multilevel modeling. I was told that I did not have to do it.&lt;BR /&gt;But I think I do, since I have individuals within states and I have 33&lt;BR /&gt;states. I am planning to categorize my b/w ratios of incarceration into low&lt;BR /&gt;med and high and my outcome variables (From PRAMS with the weights) are&lt;BR /&gt;dichotomous (yes and no). So it would be a form of logistic regression.&lt;BR /&gt;This is the PRAMS weighting process:&lt;BR /&gt;&lt;A href="https://www.cdc.gov/prams/methodology.htm#n4" target="_blank"&gt;https://www.cdc.gov/prams/methodology.htm#n4&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Nov 2020 18:27:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700292#M33776</guid>
      <dc:creator>LRamsey</dc:creator>
      <dc:date>2020-11-19T18:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Complex data set PRAMS -How do I exclude cases but not delete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700295#M33777</link>
      <description>&lt;P&gt;That description really sounds like some sort of Mixed model which is not my strong suit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would look strongly at your incarceration data. You may want to exclude some other states because the black population is low and the one-year rate can fluctuate drastically. I say that as I live and work in such a state and get funny looks at some meetings where I mentioned that we have more Basques, Native Americans and, at that time, Asians than Blacks. So ratios of anything related to the black population were subject to wide annual variation. This might also be the reason one of your states does "other than white" to have a sample reliable enough to mean something in terms of policy planning/decision making processes.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 18:52:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700295#M33777</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-19T18:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Complex data set PRAMS -How do I exclude cases but not delete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700296#M33778</link>
      <description>Yes! Thank you! I have considered this as well!! I've been told so many&lt;BR /&gt;different things, but it makes sense. Some of the ratios are huge and&lt;BR /&gt;that's because there's a small black population. So I think I will exclude&lt;BR /&gt;them. However, I've been told that I can't delete because that will mess up&lt;BR /&gt;the weighting. So, how could I handle that in SAS? Could I set the&lt;BR /&gt;incarceration variable for those states to zero and they would fall out of&lt;BR /&gt;my regression models?&lt;BR /&gt;Yes after reading, I realized it would be a mixed model. I've been told to&lt;BR /&gt;run both fixed and random models and compare them. However, I am not sure.&lt;BR /&gt;I am new to this type of analysis.&lt;BR /&gt;&lt;BR /&gt;Thank you!!&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Nov 2020 18:57:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700296#M33778</guid>
      <dc:creator>LRamsey</dc:creator>
      <dc:date>2020-11-19T18:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Complex data set PRAMS -How do I exclude cases but not delete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700303#M33779</link>
      <description>&lt;P&gt;If a variable is missing on a model statement in most of the procedures the record would be excluded from the analysis, which may not quite be the same as discarding the record such as with Where.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But not sure how to handle this case, as I said mixed models aren't my experience.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 19:11:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700303#M33779</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-19T19:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: Working with Complex data set PRAMS -How do I exclude cases but not delete</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700318#M33780</link>
      <description>Thank you for your help!!&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Nov 2020 20:06:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Working-with-Complex-data-set-PRAMS-How-do-I-exclude-cases-but/m-p/700318#M33780</guid>
      <dc:creator>LRamsey</dc:creator>
      <dc:date>2020-11-19T20:06:39Z</dc:date>
    </item>
  </channel>
</rss>

