<?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 LOGISTIC question in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927339#M46147</link>
    <description>Thank you! I will review the parameterization. I cannot use LSMEANS unless I set the parameter to glm so I will explore using that vs. reference, as well as the other options.</description>
    <pubDate>Tue, 07 May 2024 17:11:17 GMT</pubDate>
    <dc:creator>mitrakos</dc:creator>
    <dc:date>2024-05-07T17:11:17Z</dc:date>
    <item>
      <title>PROC LOGISTIC question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927197#M46121</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have survey data of approximately 5000 participants and I am currently looking to model the outcome of a dichotomized response variable to a predictor. Our question is if there is a trend of participants being more likely to be in the 1 level of the response variable as we move from 4 to 1 in the ordinal response predictor.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The dichotomized response has levels 1 and 0 while the predictor is an ordinal survey response with levels 1 - "Yes - completely", 2 - "Yes - mostly",&amp;nbsp; 3 - "Yes - somewhat", and 4 - "No".&amp;nbsp; I am currently wondering how to structure my proc logistic code and also weighing the use of proc logistic vs. proc surveylogistic. I do not have survey weights, so it seems that proc surveylogistic would not be useful in comparison to proc logisitic.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my code so far:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc logistic data = import plots=all;
class outcome q1 / param=ordinal;
model outcome = q1;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I chose ordinal for the param= statement however I am not sure about that, though changing the param= option does not change the model fit statistics.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will continue to read documentation about proc logistic to see what other options might suit, but if there are any suggestions please let me know. Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 17:28:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927197#M46121</guid>
      <dc:creator>mitrakos</dc:creator>
      <dc:date>2024-05-06T17:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927202#M46122</link>
      <description>I would review the ordinal method of parmeterization . I don't think it's valid for your questions, given the type of answers and the differentiation between No and somewhat/mostly/completely. &lt;BR /&gt;And because it accumulates them, which may not be in the order you want, so you'll need to review the order of the parameters as well (I suspect it's inverse of what you want). &lt;BR /&gt;&lt;BR /&gt;I think using REF would allow you the most flexibility in combination with ESTIMATE/LSMEANS/ODDSRATIO statements to test various hypothesis</description>
      <pubDate>Mon, 06 May 2024 17:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927202#M46122</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2024-05-06T17:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927204#M46123</link>
      <description>PS. I moved this to Statistics Forum</description>
      <pubDate>Mon, 06 May 2024 17:44:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927204#M46123</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2024-05-06T17:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927224#M46127</link>
      <description>&lt;P&gt;Assuming your data was from a random sample, it is easiest to avoid a modeling approach and use the Cochran-Armitage trend test available in PROC FREQ. You can also use a modeling approach with PROC LOGISTIC, but if the table is sparse this can make it difficult to successfully fit the model. When you use PROC LOGISTIC, you should not specify the response variable in the CLASS statement. If your predictor variable is ordinal, you should create a numeric variable with appropriate numeric values for its levels and use it only in the MODEL statement, not in the CLASS statement. The following shows both analyses assuming a numeric predictor Q1NUM. The trend test is the test of the Q1NUM parameter in the PROC LOGISTIC results. The tests from PROC FREQ and PROC LOGISTIC should not be expected to be the same as they are entirely different types of tests. For more information on the C-A trend test in PROC FREQ, see the "Details: Statistical Computations:&amp;nbsp;Cochran-Armitage Test for Trend."&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=import; 
table q1num*outcome/trend;
run;
proc logistic data=import;
model outcome(event='1')=q1num;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Note that if your data was collected using a complex survey involving clustering or stratified sampling, you should not use PROC LOGISTIC or PROC FREQ - you should use PROC SURVEYLOGISTIC or PROC SURVEYFREQ.&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2024 20:17:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927224#M46127</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2024-05-06T20:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927339#M46147</link>
      <description>Thank you! I will review the parameterization. I cannot use LSMEANS unless I set the parameter to glm so I will explore using that vs. reference, as well as the other options.</description>
      <pubDate>Tue, 07 May 2024 17:11:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927339#M46147</guid>
      <dc:creator>mitrakos</dc:creator>
      <dc:date>2024-05-07T17:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: PROC LOGISTIC question</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927340#M46148</link>
      <description>Thank you for the reply! I hadn't heard of the Cochran-Armitage test so I will look into that. Currently there is no clustering or stratified sampling, however we do collect demographics so if that becomes the case I will be sure to look into SURVEYLOGISTIC and SURVEYFREQ.</description>
      <pubDate>Tue, 07 May 2024 17:15:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-LOGISTIC-question/m-p/927340#M46148</guid>
      <dc:creator>mitrakos</dc:creator>
      <dc:date>2024-05-07T17:15:43Z</dc:date>
    </item>
  </channel>
</rss>

