<?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 Surveylogistic and Contrast line in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Contrast-line/m-p/863784#M42711</link>
    <description>&lt;P&gt;Assuming you are trying to test the linear effect using orthogonal polynomials, it is usually easier to set the PARAM= option on the CLASS statement to GLM to make sure that the coefficients match up correctly with the levels.&amp;nbsp; This will also take care of the WARNING message in your case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;class datayr female RACEETH4cat grade/param=glm;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;note that I removed the response variable from the CLASS statement since it is not needed.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 13:25:56 GMT</pubDate>
    <dc:creator>SAS_Rob</dc:creator>
    <dc:date>2023-03-13T13:25:56Z</dc:date>
    <item>
      <title>Proc Surveylogistic and Contrast line</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Contrast-line/m-p/863780#M42710</link>
      <description>&lt;P&gt;I'm using Proc surveylogistic to run trend analyses with three years of weighted data (code below). I've included my linear variable along with other variables to control for.&amp;nbsp; I've added a contrast line to the code but I'm getting the following error message:&amp;nbsp;&amp;nbsp;NOTE: Convergence criterion (GCONV=1E-8) satisfied.&amp;nbsp;WARNING: More coefficients than levels specified for effect datayr.&amp;nbsp; Some coefficients will be ignored.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The results show that the three years of data are included although the warning statement says otherwise. I had been looking at the 'Contrast Test Results' p value. Should I keep the contrast line? Should I instead be using the p-values from the Type 3 Analysis of Effects?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc surveylogistic data=combined1721;&lt;BR /&gt;strata stratum;&lt;BR /&gt;cluster psu;&lt;BR /&gt;weight weight;&lt;BR /&gt;class forced_sex datayr female RACEETH4cat grade ;&lt;BR /&gt;model forced_sex = datayr female RACEETH4cat grade ;&lt;BR /&gt;contrast 'linear' datayr -1 0 1;&lt;BR /&gt;format RACEETH4cat RACEETH4cat. forced_sex forced_sex.;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:16:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Contrast-line/m-p/863780#M42710</guid>
      <dc:creator>UserID437122</dc:creator>
      <dc:date>2023-03-13T13:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Contrast line</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Contrast-line/m-p/863784#M42711</link>
      <description>&lt;P&gt;Assuming you are trying to test the linear effect using orthogonal polynomials, it is usually easier to set the PARAM= option on the CLASS statement to GLM to make sure that the coefficients match up correctly with the levels.&amp;nbsp; This will also take care of the WARNING message in your case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;class datayr female RACEETH4cat grade/param=glm;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;note that I removed the response variable from the CLASS statement since it is not needed.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:25:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Contrast-line/m-p/863784#M42711</guid>
      <dc:creator>SAS_Rob</dc:creator>
      <dc:date>2023-03-13T13:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Surveylogistic and Contrast line</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Contrast-line/m-p/863785#M42712</link>
      <description>&lt;P&gt;That worked, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 13:33:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Proc-Surveylogistic-and-Contrast-line/m-p/863785#M42712</guid>
      <dc:creator>UserID437122</dc:creator>
      <dc:date>2023-03-13T13:33:47Z</dc:date>
    </item>
  </channel>
</rss>

