<?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: Logistic regression with odds ratios in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778153#M31493</link>
    <description>&lt;P&gt;I am trying to use the code provided as an exmaple to follow from the links above where the examples are using titanice code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what my code looks like is this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC LOGISTIC DATA = vaccine_hesitancy descending;&lt;BR /&gt;where part=1;&lt;BR /&gt;class SEX AGE EDUCATION;&lt;BR /&gt;model VACCINEHESITANT(event= '1') = vaccinefactors1 vaccinefactors2 vaccinefactors3 vaccinefactors4 vaccinefactors5 vaccinefactors6 vaccinefactors7 vaccinefactors8 vaccinefactors9 vaccinefactors10 vaccinefactors11/&lt;BR /&gt;selection = stepwise expb stb lackfit ;&lt;BR /&gt;output out = temp p=new;&lt;BR /&gt;store vaccine_hesitancy_logistic;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To begin, my error is " work.vaccine_hesitancy data" does not exist&lt;/P&gt;</description>
    <pubDate>Wed, 03 Nov 2021 11:59:09 GMT</pubDate>
    <dc:creator>Guerraje</dc:creator>
    <dc:date>2021-11-03T11:59:09Z</dc:date>
    <item>
      <title>Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/777560#M31462</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new to SAS am interesting in trying to run logistic regression. I want to adjust for Sex, Age, and Education while running the logistic regression with the factors listed on the table ( I am going to paste the table below to show the excel table I am trying to do the regression on). I would like to know if politics for example is significant with adjusting for sex, age and education. I will include how these variables are coded because I think that changes what statements we might be able to use. Thank you for any guidance in this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2021-10-31 at 3.26.56 AM.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/65270i30AA8BCF4293A08D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screen Shot 2021-10-31 at 3.26.56 AM.png" alt="Screen Shot 2021-10-31 at 3.26.56 AM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;-&lt;STRONG&gt;Our S&lt;U&gt;ex&lt;/U&gt; variable is either&lt;/STRONG&gt; (M) or (F)&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;Our &lt;U&gt;Education&lt;/U&gt; is binary 1 or 0 with this code&lt;/STRONG&gt;:&amp;nbsp;&lt;/P&gt;&lt;P&gt;IF EDUCATION IN (4,5) THEN COLLEGE = 1;&lt;BR /&gt;ELSE IF EDUCATION IN (1,2,3) THEN COLLEGE = 0;&lt;BR /&gt;ELSE COLLEGE= . ;&lt;/P&gt;&lt;P&gt;- &lt;STRONG&gt;Our A&lt;U&gt;ge&lt;/U&gt; is coded in categories with this code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;BR /&gt;value agef 18-29= '18-29' 30-64='30-64' &amp;nbsp;65-high= '&amp;gt;65';&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 09:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/777560#M31462</guid>
      <dc:creator>Guerraje</dc:creator>
      <dc:date>2021-10-31T09:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/777563#M31464</link>
      <description>&lt;P&gt;Show us the code you have tried so far.&lt;/P&gt;</description>
      <pubDate>Sun, 31 Oct 2021 10:33:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/777563#M31464</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-10-31T10:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/777617#M31471</link>
      <description>What exactly is your question for us though? I see the problem you're working on but not what you need help with. &lt;BR /&gt;&lt;BR /&gt;FYI - Here are a few tutorials to get you started though. You do not need to dummy code your variables, SAS will do that and it will honour formats as well. &lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/A-Guide-to-Logistic-Regression-in-SAS/ta-p/564323" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/A-Guide-to-Logistic-Regression-in-SAS/ta-p/564323&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/doc/en/statug/15.2/statug_logistic_examples02.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/statug/15.2/statug_logistic_examples02.htm&lt;/A&gt;</description>
      <pubDate>Sun, 31 Oct 2021 23:29:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/777617#M31471</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-10-31T23:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/777620#M31472</link>
      <description>I am not sure where to start. I have never worked with logistic regression. When looking up possibilities, I have found proc logistic, or proc genmod, however, they both have certain specific uses which I am not sure meet, or do not meet criteria. I am not certain which statements are appropriate, and how to build the code for it.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Sun, 31 Oct 2021 23:47:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/777620#M31472</guid>
      <dc:creator>Guerraje</dc:creator>
      <dc:date>2021-10-31T23:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/777621#M31473</link>
      <description>I am not sure where to start. I have never worked with logistic regression. When looking up possibilities, I have found proc logistic, or proc genmod, however they both have certain specific uses which I am not sure meet, or do not meet criteria. I am not certain which statements are appropriate, and how to build the code for it.&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Sun, 31 Oct 2021 23:47:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/777621#M31473</guid>
      <dc:creator>Guerraje</dc:creator>
      <dc:date>2021-10-31T23:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778005#M31482</link>
      <description>Do you have more specific questions after reviewing the links?</description>
      <pubDate>Tue, 02 Nov 2021 19:26:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778005#M31482</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-02T19:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778141#M31492</link>
      <description>&lt;P&gt;I am trying to use the code provided as an exmaple to follow from the links above where the examples are using titanice code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what my code looks like is this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC LOGISTIC DATA = vaccine_hesitancy descending;&lt;BR /&gt;where part=1;&lt;BR /&gt;class SEX AGE EDUCATION;&lt;BR /&gt;model VACCINEHESITANT(event= '1') = vaccinefactors1 vaccinefactors2 vaccinefactors3 vaccinefactors4 vaccinefactors5 vaccinefactors6 vaccinefactors7 vaccinefactors8 vaccinefactors9 vaccinefactors10 vaccinefactors11/&lt;BR /&gt;selection = stepwise expb stb lackfit ;&lt;BR /&gt;output out = temp p=new;&lt;BR /&gt;store vaccine_hesitancy_logistic;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To begin, my error is " work.vaccine_hesitancy data" does not exist&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 11:36:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778141#M31492</guid>
      <dc:creator>Guerraje</dc:creator>
      <dc:date>2021-11-03T11:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778153#M31493</link>
      <description>&lt;P&gt;I am trying to use the code provided as an exmaple to follow from the links above where the examples are using titanice code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what my code looks like is this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC LOGISTIC DATA = vaccine_hesitancy descending;&lt;BR /&gt;where part=1;&lt;BR /&gt;class SEX AGE EDUCATION;&lt;BR /&gt;model VACCINEHESITANT(event= '1') = vaccinefactors1 vaccinefactors2 vaccinefactors3 vaccinefactors4 vaccinefactors5 vaccinefactors6 vaccinefactors7 vaccinefactors8 vaccinefactors9 vaccinefactors10 vaccinefactors11/&lt;BR /&gt;selection = stepwise expb stb lackfit ;&lt;BR /&gt;output out = temp p=new;&lt;BR /&gt;store vaccine_hesitancy_logistic;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To begin, my error is " work.vaccine_hesitancy data" does not exist&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 11:59:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778153#M31493</guid>
      <dc:creator>Guerraje</dc:creator>
      <dc:date>2021-11-03T11:59:09Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778230#M31505</link>
      <description>That means your input data set does not exist.&lt;BR /&gt;Confirm the data set does exist.</description>
      <pubDate>Wed, 03 Nov 2021 15:09:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778230#M31505</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-03T15:09:05Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778316#M31507</link>
      <description>&lt;P&gt;It is the dataset I have been using for my whole project. It seems like from the video it is the correct data I should be placing in that line.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 19:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778316#M31507</guid>
      <dc:creator>Guerraje</dc:creator>
      <dc:date>2021-11-03T19:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic regression with odds ratios</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778322#M31509</link>
      <description>So you made sure it's in the work library and you can see it?&lt;BR /&gt;If you run proc contents on that data set it works? Do you need to run earlier steps in the project to ensure it's created? &lt;BR /&gt;&lt;BR /&gt;proc contents data=vaccine_hesitancy;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Nov 2021 19:30:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Logistic-regression-with-odds-ratios/m-p/778322#M31509</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-11-03T19:30:13Z</dc:date>
    </item>
  </channel>
</rss>

