<?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: how to know inference and probability in proc logistic given variable in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/781695#M10292</link>
    <description>&lt;P&gt;You want this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart;
 keep status bp_status sex;
run;

proc sql;
create table predict as
select *
 from (select distinct bp_status from have),(select distinct sex from have);
quit;

proc logistic data=have;
class bp_status sex;
model status=bp_status sex;
score data=predict out=want ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 22 Nov 2021 11:45:13 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2021-11-22T11:45:13Z</dc:date>
    <item>
      <title>how to know inference and probability in proc logistic given variable</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/781653#M10291</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am lost in proc logistic procedure.&lt;/P&gt;&lt;P&gt;My data has outcome variable with 2 levels(yes, no), and&lt;/P&gt;&lt;P&gt;two independent variables. Sex- male, female. Type- A, B, C.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I want to make an inference about the sex on outcome variable for given Type variable using proc logistic, how can I see that? Like, when given Type, A B and C I want to see how each sex effects on outcome variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thus how can I get the probability for each possible situations? like, if I want to know probability of outcome being yes if sex is male and type is C?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am not using any interaction term here, so this is my model statement&amp;nbsp;&lt;/P&gt;&lt;P&gt;model outcome = type sex;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Nov 2021 05:15:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/781653#M10291</guid>
      <dc:creator>htst1003</dc:creator>
      <dc:date>2021-11-22T05:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: how to know inference and probability in proc logistic given variable</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/781695#M10292</link>
      <description>&lt;P&gt;You want this ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
 set sashelp.heart;
 keep status bp_status sex;
run;

proc sql;
create table predict as
select *
 from (select distinct bp_status from have),(select distinct sex from have);
quit;

proc logistic data=have;
class bp_status sex;
model status=bp_status sex;
score data=predict out=want ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 22 Nov 2021 11:45:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/781695#M10292</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-22T11:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to know inference and probability in proc logistic given variable</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/782090#M10297</link>
      <description>It does not give result.. I have no idea how to know result when one variable is given</description>
      <pubDate>Tue, 23 Nov 2021 22:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/782090#M10297</guid>
      <dc:creator>htst1003</dc:creator>
      <dc:date>2021-11-23T22:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to know inference and probability in proc logistic given variable</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/782091#M10298</link>
      <description>&lt;P&gt;Hello &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/382365"&gt;@htst1003&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;May I give you some gentle advice? When you say "It does not give result" and provide no other details, we can't help you. We don't know what you did, and we don't know what happened. You need to provide details about what you did (the LOG from SAS showing the code in the LOG, plus all NOTEs, WARNINGs and ERRORs in the LOG) and if the output isn't correct, show us the output as well, state why it isn't correct, and what you think is the right answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This applies to all interactions in software forums, not just this particular interaction.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 22:51:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/782091#M10298</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-23T22:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to know inference and probability in proc logistic given variable</title>
      <link>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/782196#M10299</link>
      <description>Open WANT dataset. Is that you are looking for ?</description>
      <pubDate>Wed, 24 Nov 2021 11:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/how-to-know-inference-and-probability-in-proc-logistic-given/m-p/782196#M10299</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2021-11-24T11:55:28Z</dc:date>
    </item>
  </channel>
</rss>

