<?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: Mixed effects survival model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Mixed-effects-survival-model/m-p/521201#M26486</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Were you able to resolve this? I am looking to create a multilevel model with 2 clusters (ID and center) with recurrent events. The PROC PHREG statement only seems to allow for one random effect in the RANDOM statment. When I write the RANDOM statement twice for the 2 variables, it doesn't appear to work. I took a look into PROC SURVEYPHREG, which allows you to have more than one RANDOM effect, but I'm not sure how to adjust of the recurrent events.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=final_survival_export covs(aggregate) covm;
class 	pt_id prev_enteral_feed (ref='0') /*need this to specify for random effect*/;
model  (visit0 visit1)*rs(0)= prev_enteral_feed/rl ties=efron; /* RL= 95% (default alpha level) confidence limits for the hazard ratios.*/
random pt_id; *shared frailty;
id pt_id; /*not sure if this ID step is needed*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I had for the 1 random effect model that accoounts for recurrent events, however I need 2 random effects.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Dec 2018 17:11:55 GMT</pubDate>
    <dc:creator>Thuva</dc:creator>
    <dc:date>2018-12-13T17:11:55Z</dc:date>
    <item>
      <title>Mixed effects survival model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mixed-effects-survival-model/m-p/436589#M23047</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data has a 3-level clustered structure: first cluster level is A (e.g. student), second level B(e.g. class), third level C (e.g. school), and a student may have multiple events(recurrent). I wonder if any SAS proc could do a recurrent event survival analysis with 3-level clustered data?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In addition, there are more than 2 time dependent covariates (i.e. may change during the time interval from the start date to an event date), I wonder if there is an instruction or example how to deal with more than 2 time dependent covariates in a survival model?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated!&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 07:39:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mixed-effects-survival-model/m-p/436589#M23047</guid>
      <dc:creator>AprilS</dc:creator>
      <dc:date>2018-02-13T07:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mixed effects survival model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Mixed-effects-survival-model/m-p/521201#M26486</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Were you able to resolve this? I am looking to create a multilevel model with 2 clusters (ID and center) with recurrent events. The PROC PHREG statement only seems to allow for one random effect in the RANDOM statment. When I write the RANDOM statement twice for the 2 variables, it doesn't appear to work. I took a look into PROC SURVEYPHREG, which allows you to have more than one RANDOM effect, but I'm not sure how to adjust of the recurrent events.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc phreg data=final_survival_export covs(aggregate) covm;
class 	pt_id prev_enteral_feed (ref='0') /*need this to specify for random effect*/;
model  (visit0 visit1)*rs(0)= prev_enteral_feed/rl ties=efron; /* RL= 95% (default alpha level) confidence limits for the hazard ratios.*/
random pt_id; *shared frailty;
id pt_id; /*not sure if this ID step is needed*/
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is what I had for the 1 random effect model that accoounts for recurrent events, however I need 2 random effects.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2018 17:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Mixed-effects-survival-model/m-p/521201#M26486</guid>
      <dc:creator>Thuva</dc:creator>
      <dc:date>2018-12-13T17:11:55Z</dc:date>
    </item>
  </channel>
</rss>

