<?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: Plot probability of binary variable using proc plm based on stored dataset output from proc glim in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Plot-probability-of-binary-variable-using-proc-plm-based-on/m-p/965222#M48432</link>
    <description>Thanks, Ksharp.&lt;BR /&gt;&lt;BR /&gt;I tried to include ilink in the proc plm.&lt;BR /&gt;&lt;BR /&gt;        proc plm restore = yy;&lt;BR /&gt;                     score data=disonsetScoreData out= be_af_disonset_graph&lt;BR /&gt; pred=Predicted lclm=Lower uclm=Upper/ilink;&lt;BR /&gt;                 run; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It works.</description>
    <pubDate>Mon, 28 Apr 2025 01:57:40 GMT</pubDate>
    <dc:creator>Jie111</dc:creator>
    <dc:date>2025-04-28T01:57:40Z</dc:date>
    <item>
      <title>Plot probability of binary variable using proc plm based on stored dataset output from proc glimmix</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Plot-probability-of-binary-variable-using-proc-plm-based-on/m-p/965203#M48430</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to plot from a proc plm based on a stored dataset output from proc glimmix procedure.&lt;/P&gt;
&lt;P&gt;here is my code:&lt;/P&gt;
&lt;PRE&gt;         
             proc glimmix data= insomnia  Method=ml noclprint ;
                  class  newid T;
                  model insomnia = year_1_cvd_time_center cvd_onset cvd_onset*year_1_cvd_time_center 
                                       year_1_cvd_time_square cvd_onset*year_1_cvd_time_square is_high_education_y0 is_female age_at_year0 
                                       is_high_education_y0*year_1_cvd_time_center is_female*year_1_cvd_time_center age_at_year0*year_1_cvd_time_center/solution notest cl ddfm=bw dist=binary;
                  random intercept year_1_cvd_time_center year_1_cvd_time_square /subject= newid type=vc; 
                  store out = model_be_cvd_onset;
             run;

            
                 data disonsetScoreData;
                       do year_1_cvd_time_center = -6 to 6 by 1;
                         do cvd_onset = 0 to 1;
                            year_1_cvd_time_square = (year_1_cvd_time_center ) * (year_1_cvd_time_center);
                            back_timescale_disonset = year_1_cvd_time_center - 6 ;
                            age_at_year0 = 56;
                            is_female = 1;
                            is_high_education_y0 = 0;   
                         output; 
                        end;                         
                       end;
                 run;                     
  
                 /*for drawing the graph*/     
                 proc plm restore = model_be_cvd_onset;
                     score data=disonsetScoreData out= be_af_disonset_graph
                     pred=Predicted lclm=Lower uclm=Upper;
                 run; &lt;/PRE&gt;
&lt;P&gt;However, above proc plm does not output the probability.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know below code could output probability for each timepoint, but how could I get it for CVD_onset = 0 and CVD_onset = 1.&lt;/P&gt;
&lt;PRE&gt;ods output fitplot =  effectPlotRawData;
proc plm source= insomnia;
effectplot fit(x=year_1_cvd_time_center );
run;
&lt;/PRE&gt;
&lt;P&gt;That says, I want to draw two lines using proc plm.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Apr 2025 13:45:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Plot-probability-of-binary-variable-using-proc-plm-based-on/m-p/965203#M48430</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2025-04-27T13:45:02Z</dc:date>
    </item>
    <item>
      <title>Re: Plot probability of binary variable using proc plm based on stored dataset output from proc glim</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Plot-probability-of-binary-variable-using-proc-plm-based-on/m-p/965221#M48431</link>
      <description>&lt;P&gt;Did you try " ilink " option of score statement ?&lt;/P&gt;
&lt;PRE&gt;score data=insure out=plmout pred stderr lclm uclm / &lt;STRONG&gt;ilink&lt;/STRONG&gt;;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Apr 2025 01:50:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Plot-probability-of-binary-variable-using-proc-plm-based-on/m-p/965221#M48431</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-04-28T01:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Plot probability of binary variable using proc plm based on stored dataset output from proc glim</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Plot-probability-of-binary-variable-using-proc-plm-based-on/m-p/965222#M48432</link>
      <description>Thanks, Ksharp.&lt;BR /&gt;&lt;BR /&gt;I tried to include ilink in the proc plm.&lt;BR /&gt;&lt;BR /&gt;        proc plm restore = yy;&lt;BR /&gt;                     score data=disonsetScoreData out= be_af_disonset_graph&lt;BR /&gt; pred=Predicted lclm=Lower uclm=Upper/ilink;&lt;BR /&gt;                 run; &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It works.</description>
      <pubDate>Mon, 28 Apr 2025 01:57:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Plot-probability-of-binary-variable-using-proc-plm-based-on/m-p/965222#M48432</guid>
      <dc:creator>Jie111</dc:creator>
      <dc:date>2025-04-28T01:57:40Z</dc:date>
    </item>
  </channel>
</rss>

