<?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: Save results from ESTIMATE statement to a file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920351#M362477</link>
    <description>&lt;P&gt;Perfect!&amp;nbsp; This works beautifully.&amp;nbsp; I could not find any documentation on this.&amp;nbsp; I guess I was not looking in the right place.&amp;nbsp; Thank you so so much!!!&lt;/P&gt;</description>
    <pubDate>Thu, 14 Mar 2024 21:36:15 GMT</pubDate>
    <dc:creator>PamG</dc:creator>
    <dc:date>2024-03-14T21:36:15Z</dc:date>
    <item>
      <title>Save results from ESTIMATE statement to a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920342#M362473</link>
      <description>&lt;P&gt;Is there a way to save results from ESTIMATE statement to a file?&amp;nbsp; I have a product of 2 multi-category&amp;nbsp; variables and would like to plot the estimates on a graph.&amp;nbsp; Attaching a code for sample data.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Neuralgia;
   input Treatment $ Sex $ Age Duration Pain $ @@;
   datalines;
P  F  68   1  No   B  M  74  16  No  P  F  67  30  No
P  M  66  26  Yes  B  F  67  28  No  B  F  77  16  No
A  F  71  12  No   B  F  72  50  No  B  F  76   9  Yes
A  M  71  17  Yes  A  F  63  27  No  A  F  69  18  Yes
B  F  66  12  No   A  M  62  42  No  P  F  64   1  Yes
A  F  64  17  No   P  M  74   4  No  A  F  72  25  No
P  M  70   1  Yes  B  M  66  19  No  B  M  59  29  No
A  F  64  30  No   A  M  70  28  No  A  M  69   1  No
B  F  78   1  No   P  M  83   1  Yes B  F  69  42  No
B  M  75  30  Yes  P  M  77  29  Yes P  F  79  20  Yes
A  M  70  12  No   A  F  69  12  No  B  F  65  14  No
B  M  70   1  No   B  M  67  23  No  A  M  76  25  Yes
P  M  78  12  Yes  B  M  77   1  Yes B  F  69  24  No
P  M  66   4  Yes  P  F  65  29  No  P  M  60  26  Yes
A  M  78  15  Yes  B  M  75  21  Yes A  F  67  11  No
P  F  72  27  No   P  F  70  13  Yes A  M  75   6  Yes
B  F  65   7  No   P  F  68  27  Yes P  M  68  11  Yes
P  M  67  17  Yes  B  M  70  22  No  A  M  65  15  No
P  F  67   1  Yes  A  M  67  10  No  P  F  72  11  Yes
A  F  74   1  No   B  M  80  21  Yes A  F  69   3  No
;


proc logistic data=Neuralgia;
   class Treatment Sex /param=ref;
   model Pain= Treatment Sex Age ;
     estimate 'Pairwise B vs P' Treatment 0  1 / exp CL;
    estimate 'Pairwise A vs B' Treatment 1 -1 / exp CL;
    estimate 'Female vs Male' Sex 1 / exp CL;

run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 14 Mar 2024 20:48:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920342#M362473</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2024-03-14T20:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Save results from ESTIMATE statement to a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920344#M362474</link>
      <description>&lt;P&gt;I can't edit my original post here are more details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't use effectplot.&amp;nbsp; I am doing a conditonal logit and have interaction effect between a time-invariant and time varying covariate.&amp;nbsp; Hence I need to use the ESTIMATE to calculate the effect sizes.&lt;/P&gt;
&lt;P&gt;PROC LOGISTIC;&lt;/P&gt;
&lt;P&gt;STRATA=id,&lt;/P&gt;
&lt;P&gt;MODEL outcome(EVENT='1')=bmi bmi*race;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 20:52:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920344#M362474</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2024-03-14T20:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Save results from ESTIMATE statement to a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920345#M362475</link>
      <description>&lt;P&gt;I missed the CLASS statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC LOGISTIC;&lt;/P&gt;
&lt;P&gt;STRATA=id,&lt;/P&gt;
&lt;P&gt;CLASS race;&lt;/P&gt;
&lt;P&gt;MODEL outcome(EVENT='1')=bmi bmi*race;&lt;/P&gt;
&lt;P&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 20:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920345#M362475</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2024-03-14T20:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Save results from ESTIMATE statement to a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920347#M362476</link>
      <description>&lt;P&gt;how about adding ODS output statement:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods output Estimates=work.E;
proc&amp;nbsp;logistic&amp;nbsp;data=...
...
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;before proc logistic, and then to use data from WORK.E dataset?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 21:00:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920347#M362476</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2024-03-14T21:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: Save results from ESTIMATE statement to a file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920351#M362477</link>
      <description>&lt;P&gt;Perfect!&amp;nbsp; This works beautifully.&amp;nbsp; I could not find any documentation on this.&amp;nbsp; I guess I was not looking in the right place.&amp;nbsp; Thank you so so much!!!&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 21:36:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Save-results-from-ESTIMATE-statement-to-a-file/m-p/920351#M362477</guid>
      <dc:creator>PamG</dc:creator>
      <dc:date>2024-03-14T21:36:15Z</dc:date>
    </item>
  </channel>
</rss>

