<?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: Output logistic regression bootstrap in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570195#M28352</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733" target="_self"&gt;&lt;SPAN class="login-bold"&gt;FreelanceReinhard&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You for Your comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the output from two different proc surveyselect&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;It looks like variable &lt;FONT face="courier new,courier"&gt;Female&lt;/FONT&gt; has more distinct values than expected. So, my first check would be:&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;freq&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;dbsname&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt; female hex16&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;tables&lt;/SPAN&gt; female&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please post the output of the above step.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-07-01 at 13.38.15.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30655iE8BD96D1B918BA31/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-07-01 at 13.38.15.png" alt="Screenshot 2019-07-01 at 13.38.15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Since you're using formatted values of this variable, we should take a look at the definition of format YN. Can you show the SAS code which created that format or, if the code is not readily available, the output of the step below?&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt; lib&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;work fmtlib&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token comment"&gt;/* Please replace "work" by the appropriate libref */&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt; yn&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;            &lt;SPAN class="token comment"&gt;/* (or libref.catalogname) if YN. is not in WORK.FORMATS. */&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;Female is defined 1=yes and 0=no (this format is used also for other binary variables).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the output of the requested proc format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-07-01 at 13.42.39.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30656i1B3E841055F06EF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-07-01 at 13.42.39.png" alt="Screenshot 2019-07-01 at 13.42.39.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jul 2019 11:45:33 GMT</pubDate>
    <dc:creator>antor82</dc:creator>
    <dc:date>2019-07-01T11:45:33Z</dc:date>
    <item>
      <title>Output logistic regression bootstrap</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570085#M28349</link>
      <description>&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank You in advance for Your kind support.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm running a bootstrapping after a logistic regression and I would like to print the results. (SAS/STAT 15.1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/* 2. Generate many bootstrap samples */
proc surveyselect data=dbsname NOPRINT seed=123456
out=Bootout
method=urs 
samprate=1
reps=1000;

%macro ODSOff(); /* Call prior to BY-group processing */
ods graphics off;
ods exclude all;
ods noresults;
%mend;
 
%macro ODSOn(); /* Call after BY-group processing */
ods graphics on;
ods exclude none;
ods results;
%mend;

%ODSOff
PROC LOGISTIC data=Bootout;
    BY Replicate; 
	CLASS Female (param=ref ref='No') ChronicLungDisease (param=ref ref='No');
	MODEL Out2InHospitalOr30DayDeath(event='1')=Female ChronicLungDisease / 
		SELECTION=Backward clodds=pl gof;
	Title 'Logistic Model InHosp or 30d - ONLY preop';
	format Female ChronicLungDisease yn.;
	ods output CLoddsPL=CL_boot_Mort_mod_1;
run;
%ODSon

proc univariate data=cl_boot_mort_mod_1 noprint;
   class Effect;
   var  OddsRatioEst;
   output out=WidePctls1 pctlpre=P_ pctlpts=2.5 97.5 mean=Mean Std=Std; 
run; 


proc print data=WidePctls1 noobs label;
   format Mean Std P_2_5 P_97_5 6.4;
   label Mean="BootMean" Std="BootStdErr" P_2_5="95% Lower CL" P_97_5="95% Upper CL";
run;

&lt;/PRE&gt;&lt;P&gt;I wonder why I get these results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from DBS CL_Boot_Mort_Mod_1" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30643i5023DAE218D70A8D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-06-30 at 08.48.15.png" alt="Screenshot from DBS CL_Boot_Mort_Mod_1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot from DBS CL_Boot_Mort_Mod_1&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from Output Data WidePctls1" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30645i976CBF4B41A6BB0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-06-30 at 08.48.57.png" alt="Screenshot from Output Data WidePctls1" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot from Output Data WidePctls1&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot from Results" style="width: 452px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30644iB4D7CA81BE0FCD9B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-06-30 at 08.49.11.png" alt="Screenshot from Results" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Screenshot from Results&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like if "Female Yes vs No" has been categorised into 2 different variables (Female yes vs No and Female &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Yes vs No).&lt;/P&gt;&lt;P&gt;This happens also in other models with more independent variables included.&lt;/P&gt;&lt;P&gt;This does not happens in the baseline proc logistic without bootstrapping.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I sincerely thank You again for Your kind and precious support&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Antonio&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2019 07:12:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570085#M28349</guid>
      <dc:creator>antor82</dc:creator>
      <dc:date>2019-06-30T07:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Output logistic regression bootstrap</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570113#M28351</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/178542"&gt;@antor82&lt;/a&gt;&amp;nbsp;and welcome to the SAS Support Communities!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like variable &lt;FONT face="courier new,courier"&gt;Female&lt;/FONT&gt; has more distinct values than expected. So, my first check would be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=dbsname;
format female hex16.;
tables female;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Please post the output of the above step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you're using formatted values of this variable, we should take a look at the definition of format YN. Can you show the SAS code which created that format or, if the code is not readily available, the output of the step below?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=work fmtlib; /* Please replace "work" by the appropriate libref */
select yn;            /* (or libref.catalogname) if YN. is not in WORK.FORMATS. */
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, are you sure you don't need the &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_surveyselect_syntax01.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en&amp;amp;showBanner=walkup#statug.surveyselect.selectouthits" target="_blank" rel="noopener"&gt;OUTHITS option&lt;/A&gt; in your PROC SURVEYSELECT step? This is unrelated to the problem you've reported, but has the potential to invalidate your results.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Edit: Included link to the documentation of OUTHITS.]&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jun 2019 17:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570113#M28351</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-06-30T17:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Output logistic regression bootstrap</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570195#M28352</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733" target="_self"&gt;&lt;SPAN class="login-bold"&gt;FreelanceReinhard&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank You for Your comment.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the output from two different proc surveyselect&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;It looks like variable &lt;FONT face="courier new,courier"&gt;Female&lt;/FONT&gt; has more distinct values than expected. So, my first check would be:&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;freq&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;dbsname&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt; female hex16&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token keyword"&gt;tables&lt;/SPAN&gt; female&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Please post the output of the above step.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-07-01 at 13.38.15.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30655iE8BD96D1B918BA31/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-07-01 at 13.38.15.png" alt="Screenshot 2019-07-01 at 13.38.15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;Since you're using formatted values of this variable, we should take a look at the definition of format YN. Can you show the SAS code which created that format or, if the code is not readily available, the output of the step below?&lt;/P&gt;&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;format&lt;/SPAN&gt; lib&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;work fmtlib&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt; &lt;SPAN class="token comment"&gt;/* Please replace "work" by the appropriate libref */&lt;/SPAN&gt;
&lt;SPAN class="token statement"&gt;select&lt;/SPAN&gt; yn&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;            &lt;SPAN class="token comment"&gt;/* (or libref.catalogname) if YN. is not in WORK.FORMATS. */&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;Female is defined 1=yes and 0=no (this format is used also for other binary variables).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the output of the requested proc format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-07-01 at 13.42.39.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/30656i1B3E841055F06EF9/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2019-07-01 at 13.42.39.png" alt="Screenshot 2019-07-01 at 13.42.39.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tks again&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 11:45:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570195#M28352</guid>
      <dc:creator>antor82</dc:creator>
      <dc:date>2019-07-01T11:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Output logistic regression bootstrap</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570224#M28353</link>
      <description>&lt;P&gt;Thanks for providing the requested outputs. There's nothing wrong with them. So, we've ruled out data and format issues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hence, it seems that variable &lt;FONT face="courier new,courier"&gt;Effect&lt;/FONT&gt; in ODS table CLoddsPL shows inconsistencies, but the reason is unclear. I wasn't able to replicate this behavior with SAS/STAT 14.3 (using a different input dataset, of course). I tend to believe that this is a bug (not the first bug I've seen in ODS output datasets), but luckily there's an easy workaround: Most likely the additional blanks between "&lt;FONT face="courier new,courier"&gt;Female&lt;/FONT&gt;" and "&lt;FONT face="courier new,courier"&gt;Yes vs No&lt;/FONT&gt;" in some of the &lt;FONT face="courier new,courier"&gt;Effect&lt;/FONT&gt; values are ordinary space characters, which can be removed with the COMPBL function:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data CL_boot_Mort_mod_1a;
set CL_boot_Mort_mod_1;
effect=compbl(effect);
run;

proc freq data=CL_boot_Mort_mod_1a;
tables effect;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The PROC FREQ step with the revised dataset should show &lt;EM&gt;one&lt;/EM&gt; category "&lt;FONT face="courier new,courier"&gt;Female Yes vs No&lt;/FONT&gt;" rather than two (and the unchanged category involving&amp;nbsp;&lt;FONT face="courier new,courier"&gt;ChronicLungDisease&lt;/FONT&gt;). Otherwise you'd need to display the &lt;FONT face="courier new,courier"&gt;Effect&lt;/FONT&gt; values in $HEX&lt;EM&gt;w&lt;/EM&gt;. format to find out what kind of blanks have been inserted (and use the COMPRESS function with appropriate arguments instead of COMPBL to remove them).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then PROC UNIVARIATE, based on&amp;nbsp; &lt;FONT face="courier new,courier"&gt;CL_boot_Mort_mod_1&lt;STRONG&gt;a&lt;/STRONG&gt;&lt;/FONT&gt;, will use the consolidated CLASS level as well and the problem is solved.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Again, I think the OUTHITS option in PROC SURVEYSELECT is mandatory in your case to obtain valid bootstrap samples (i.e. &lt;EM&gt;with&lt;/EM&gt; replacement) because you don't use variable &lt;FONT face="courier new,courier"&gt;NumberHits&lt;/FONT&gt; (of dataset &lt;FONT face="courier new,courier"&gt;Bootout&lt;/FONT&gt;) in the subsequent steps.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 13:27:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570224#M28353</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-07-01T13:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Output logistic regression bootstrap</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570311#M28354</link>
      <description>&lt;P&gt;Thank You&amp;nbsp;&lt;SPAN class="login-bold"&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32733" target="_self"&gt;FreelanceReinhard&lt;/A&gt;&amp;nbsp;for Your support!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Sincerely&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="login-bold"&gt;Antonio&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 15:55:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570311#M28354</guid>
      <dc:creator>antor82</dc:creator>
      <dc:date>2019-07-01T15:55:28Z</dc:date>
    </item>
    <item>
      <title>Re: Output logistic regression bootstrap</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570319#M28355</link>
      <description>&lt;P&gt;You're welcome. I had one more idea while I wasn't able to access the SAS website for a while:&lt;/P&gt;
&lt;P&gt;You may want to make sure that the unexpected discrepancies between &lt;FONT face="courier new,courier"&gt;Effect&lt;/FONT&gt; values did not occur &lt;EM&gt;within&lt;/EM&gt; a replicate. (This is unlikely, but it would possibly indicate a more serious issue.) This would lead to duplicate Replicate-Effect combinations in the revised dataset&amp;nbsp;&lt;FONT face="courier new,courier"&gt;CL_boot_Mort_mod_1&lt;STRONG&gt;a&lt;/STRONG&gt;&lt;/FONT&gt;. So, if the PROC SQL step below created a &lt;EM&gt;non-empty&lt;/EM&gt; dataset MYST, we should be alarmed.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
create table myst as
select * from CL_boot_Mort_mod_1a
group by replicate, effect
having count(*)&amp;gt;1;
quit;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But most likely it will result in:&lt;/P&gt;
&lt;PRE&gt;NOTE: Table WORK.MYST created, with 0 rows and 6 columns.&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 16:32:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570319#M28355</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-07-01T16:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Output logistic regression bootstrap</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570342#M28356</link>
      <description>So it did</description>
      <pubDate>Mon, 01 Jul 2019 18:46:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570342#M28356</guid>
      <dc:creator>antor82</dc:creator>
      <dc:date>2019-07-01T18:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Output logistic regression bootstrap</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570352#M28357</link>
      <description>&lt;P&gt;In my analysis, I've run three different logistic regression models (1-only baseline variables; 2-baseline+procedure-related variables; 3-baseline+procedure-related+postoperative-complications). Then do a bootstrap resampling.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is it possible to have such results? (I'm posting only some examples)...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Model 2&lt;/P&gt;&lt;P&gt;Female Yes vs No &amp;nbsp; &amp;nbsp; OR 5.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 95%CI 2.6-12.2 &amp;nbsp;(OR similar to Model 1)&lt;/P&gt;&lt;P&gt;Procedure &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;OR &lt;SPAN&gt;49085.6&lt;/SPAN&gt; &amp;nbsp; 95%CI 6.1-75.4 &amp;nbsp;(such big OR???? OR greater than upper 95%CL????)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Model 3&lt;/P&gt;&lt;P&gt;Female Yes vs No &amp;nbsp; &amp;nbsp; OR 10.1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 95%CI 3.1-40.5 &amp;nbsp;(OR so far from Model 2?????)&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 19:07:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570352#M28357</guid>
      <dc:creator>antor82</dc:creator>
      <dc:date>2019-07-01T19:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Output logistic regression bootstrap</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570457#M28358</link>
      <description>&lt;P&gt;My first step would always be univariate logistic regressions (or, in the case of categorical predictors, contingency table analyses) to select candidate variables for a multivariable model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Adjusting for other variables can change the odds ratio for a predictor considerably.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The extremely large OR requires further investigation (see also suspicious log messages, e.g., "&lt;SPAN&gt;quasi-complete separation of data points"&lt;/SPAN&gt;). I think with &lt;FONT face="courier new,courier"&gt;clodds=wald&lt;/FONT&gt; the point estimate would always be within the confidence limits. If &lt;FONT face="courier new,courier"&gt;Procedure&lt;/FONT&gt; is a continuous variable, the OR depends on the measurement unit (cf. &lt;A href="https://documentation.sas.com/?docsetId=statug&amp;amp;docsetTarget=statug_logistic_syntax36.htm&amp;amp;docsetVersion=15.1&amp;amp;locale=en" target="_blank" rel="noopener"&gt;UNITS statement&lt;/A&gt;). I'd take a look at the joint distribution of this and the dependent variable.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 08:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570457#M28358</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2019-07-02T08:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Output logistic regression bootstrap</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570503#M28359</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;My first step would always be univariate logistic regressions (or, in the case of categorical predictors, contingency table analyses) to select candidate variables for a multivariable model.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Already done. Only significantly associated variables have been included in the models.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;"quasi-complete separation of data points"&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Yes, it happens. I'm&amp;nbsp;trying to solve this with&amp;nbsp;penalised regression models (firth options in the model statement).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, some variables have OR &amp;lt;0.0001 or &amp;gt;999.999. (less frequently with firth option, but present anyway....) This greatly influence my models.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I guess I would&amp;nbsp;probably better redefine the variables included in the models to avoid separation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Jul 2019 11:41:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Output-logistic-regression-bootstrap/m-p/570503#M28359</guid>
      <dc:creator>antor82</dc:creator>
      <dc:date>2019-07-02T11:41:33Z</dc:date>
    </item>
  </channel>
</rss>

