<?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: PROC SURVEYFREQ note in log - &amp;quot;...the design correction is not positive&amp;quot; in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-note-in-log-quot-the-design-correction-is-not/m-p/387846#M20195</link>
    <description>&lt;P&gt;Here is the PROC SURVEYFREQ syntax:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SURVEYFREQ DATA = PropensityVol2;&lt;BR /&gt;TABLES&lt;BR /&gt;&amp;nbsp; (Age_category&lt;BR /&gt;&amp;nbsp; Gender&lt;BR /&gt;&amp;nbsp; Race&lt;BR /&gt;&amp;nbsp; Educ&lt;BR /&gt;&amp;nbsp; Marital&lt;BR /&gt;&amp;nbsp; Income_category&lt;BR /&gt;&amp;nbsp; Veteran&lt;BR /&gt;&amp;nbsp; Employment&lt;BR /&gt;&amp;nbsp; FuncLimit) * Treatment /CHISQ;&lt;BR /&gt;WEIGHT PSWeightIPTWxSurveyWeight;&lt;/P&gt;&lt;P&gt;RUN;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Aug 2017 16:24:41 GMT</pubDate>
    <dc:creator>wfung</dc:creator>
    <dc:date>2017-08-14T16:24:41Z</dc:date>
    <item>
      <title>PROC SURVEYFREQ note in log - "...the design correction is not positive"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-note-in-log-quot-the-design-correction-is-not/m-p/387800#M20190</link>
      <description>&lt;P&gt;I'm running PROC SURVEYFREQ to compare demographic covariables of my sample with a national sample.&lt;/P&gt;&lt;P&gt;The first step I wanted to do was determine if propensity score weighting can balance the demographics covariates between my sample and the national sample. When I ran the&amp;nbsp;&lt;SPAN&gt;PROC SURVEYFREQ with chi-square test, I got the following note in the SAS log:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"The Rao-Scott chi-square test cannot be computed for the table of GENDER by Treatment&lt;BR /&gt;because the design correction is not positive."&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I got the same note for some (but not all) of the covarites. Does anyone know what this means? Any help would be much appreciated. Thank you.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I first appended my sample and the national sample into one dataset. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then I created the propensity scores using a logistic regression.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here is the syntax that created the propensity score weights:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/*Calculate weights using propensity score. */&lt;BR /&gt;DATA PropensityVol2;&lt;BR /&gt;SET PropensityVol;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Weighting by the odds*/&lt;BR /&gt;IF Treatment = 1 THEN PSWeightWBO = 1;&lt;BR /&gt;ELSE IF Treatment = 0 THEN PSWeightWBO = prob/(1 - prob);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Inverse probability of treatment*/&lt;BR /&gt;IF Treatment = 1 THEN PSWeightIPTW = 1/prob;&lt;BR /&gt;ELSE IF Treatment = 0 THEN PSWeightIPTW = 1/(1 - prob);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Multiply propensity score weight by survey weight*/&lt;BR /&gt;IF Treatment = 1 THEN PSWeightWBOxSurveyWeight = PSWeightWBO * 1; &amp;nbsp; &amp;nbsp;/*Multiply by 1 because my sample does not have survey weights*/&lt;BR /&gt;ELSE IF Treatment = 0 THEN PSWeightWBOxSurveyWeight = PSWeightWBO * NWGTR; &amp;nbsp; &amp;nbsp;/*Multiply by national sample's survey weight*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF Treatment = 1 THEN PSWeightIPTWxSurveyWeight = PSWeightIPTW * 1;&lt;BR /&gt;ELSE IF Treatment = 0 THEN PSWeightIPTWxSurveyWeight = PSWeightIPTW * NWGTR;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*Use&amp;nbsp;&lt;SPAN&gt;PSWeightWBOxSurveyWeight&amp;nbsp;or&amp;nbsp;PSWeightIPTWxSurveyWeight&amp;nbsp; in PROC SURVEYFREQ*/&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 14:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-note-in-log-quot-the-design-correction-is-not/m-p/387800#M20190</guid>
      <dc:creator>wfung</dc:creator>
      <dc:date>2017-08-14T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYFREQ note in log - "...the design correction is not positive"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-note-in-log-quot-the-design-correction-is-not/m-p/387845#M20194</link>
      <description>&lt;P&gt;And the surveyfreq code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 16:20:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-note-in-log-quot-the-design-correction-is-not/m-p/387845#M20194</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-14T16:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYFREQ note in log - "...the design correction is not positive"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-note-in-log-quot-the-design-correction-is-not/m-p/387846#M20195</link>
      <description>&lt;P&gt;Here is the PROC SURVEYFREQ syntax:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC SURVEYFREQ DATA = PropensityVol2;&lt;BR /&gt;TABLES&lt;BR /&gt;&amp;nbsp; (Age_category&lt;BR /&gt;&amp;nbsp; Gender&lt;BR /&gt;&amp;nbsp; Race&lt;BR /&gt;&amp;nbsp; Educ&lt;BR /&gt;&amp;nbsp; Marital&lt;BR /&gt;&amp;nbsp; Income_category&lt;BR /&gt;&amp;nbsp; Veteran&lt;BR /&gt;&amp;nbsp; Employment&lt;BR /&gt;&amp;nbsp; FuncLimit) * Treatment /CHISQ;&lt;BR /&gt;WEIGHT PSWeightIPTWxSurveyWeight;&lt;/P&gt;&lt;P&gt;RUN;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 16:24:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-note-in-log-quot-the-design-correction-is-not/m-p/387846#M20195</guid>
      <dc:creator>wfung</dc:creator>
      <dc:date>2017-08-14T16:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYFREQ note in log - "...the design correction is not positive"</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-note-in-log-quot-the-design-correction-is-not/m-p/387895#M20202</link>
      <description>&lt;P&gt;The design correction can in fact be negative. I suggest that you take a look at the reference listed below for details on this.&lt;/P&gt;
&lt;P&gt;Thomas, D.R., and Rao, J.N.K. (1984), "A Monte Carlo Study of Exact Levels of Goodness-of-Fit Statistics Under Cluster Sampling," Proceedings of the Survey Research Methods Section, ASA, 207 - 211.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As to the reason why in your case it is negative it is hard to say since I am not familiar with your data. It may be related to the fact that you have many single observation strata, but this is not always the cause of it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would suggest using the modified Rao-Scott chi-square (option CHISQ1) in this case. It computes the design correction using the null hypothesis cell proportions (instead of the estimated proportions) together with the cell design effects.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2017 17:56:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-note-in-log-quot-the-design-correction-is-not/m-p/387895#M20202</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2017-08-14T17:56:50Z</dc:date>
    </item>
  </channel>
</rss>

