<?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: Missing time-dependent covariate values in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/811329#M39989</link>
    <description>I will definitely try that out, thank you.</description>
    <pubDate>Tue, 03 May 2022 21:43:55 GMT</pubDate>
    <dc:creator>littleka</dc:creator>
    <dc:date>2022-05-03T21:43:55Z</dc:date>
    <item>
      <title>Missing time-dependent covariate values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/810985#M39943</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am performing survival analysis with time-dependent covariates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially, the values for methadone_1-methadone_12 are either OTP, OBOT, both, or none. Same for otp_methadone_bup_1-otp_methadone_bup_12. Non_med_1-non_med_12 are either 0 or 1.&amp;nbsp;There were no missing values when I ran frequency tables for all of these!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I continue getting the note that 606 event observations have missing values in the time-dependent covariates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my proc phreg&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;proc phreg data = outlib.EXAMPLE;
class age (ref='25-34') sex (ref='F') race (ref='White') ethnicity (ref='Not Hispanic')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; rural (ref='Urban')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;cancer (ref='0') chronic_kidney_disease (ref='0') chronic_lung_disease (ref='0')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; chronic_liver_disease (ref='0') diabetes_mellitus (ref='0') heart_disease (ref='0')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; obesity (ref='0') smoking (ref='0') meth_use_disorder (ref='0')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; cocaine_use_disorder (ref='0');
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;
model dx_survival_months*covid_dx(0)=
/*demographics*/
age race ethnicity rural
/*comorbidities/predisposing conditions*/
cancer chronic_kidney_disease chronic_lung_disease chronic_liver_disease diabetes_mellitus
heart_disease obesity smoking meth_use_disorder cocaine_use_disorder
/*time dependent vars*/
m otp non

/ ties=efron risklimits;

ARRAY methadone_(*) methadone_1-methadone_12;
m = methadone_[dx_survival_months];

ARRAY otp_methadone_bup_(*) otp_methadone_bup_1-otp_methadone_bup_12;
otp = otp_methadone_bup_[dx_survival_months];

ARRAY non_med_(*) non_med_1-non_med_12;
non = non_med_[dx_survival_months];

format age age.;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help is appreciated, and I can try to share more if this it is not clear. I'm not sure if it's an issue with how the time-dependent covariates are formatted in the data set, or what. Thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 01 May 2022 23:52:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/810985#M39943</guid>
      <dc:creator>littleka</dc:creator>
      <dc:date>2022-05-01T23:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Missing time-dependent covariate values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/811106#M39958</link>
      <description>&lt;P&gt;I suspect there are 606&amp;nbsp; missing values for&amp;nbsp;dx_survival_months. (Or maybe 202 missing values?) You are using that as an index into the 0/1 variables&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;methadone_1-methadone_12
otp_methadone_bup_1-otp_methadone_bup_12
non_med_1-non_med_12&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I think an array lookup such as&amp;nbsp;methadone_[dx_survival_months] is resulting in a missing value when the index value (dx_survival_months) is missing.&lt;/P&gt;</description>
      <pubDate>Mon, 02 May 2022 18:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/811106#M39958</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-02T18:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Missing time-dependent covariate values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/811159#M39962</link>
      <description>Thank you for the response. Unfortunately in running a frequency table on the dx_survival_months variable, there are no missing values.</description>
      <pubDate>Tue, 03 May 2022 04:34:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/811159#M39962</guid>
      <dc:creator>littleka</dc:creator>
      <dc:date>2022-05-03T04:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Missing time-dependent covariate values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/811181#M39964</link>
      <description>&lt;P&gt;Interesting. Well, they are coming from somewhere, so I suggest you write a DATA step to manufacture the m, otp, and non variables. This will give you complete control over the variables and the ability to inspect them and, optionally, track down where the missing values are coming from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On the other hand, PROC PHREG will drop the observations that have missing covariates, so maybe the problem will go away when you create the variables outside of the procedure.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2022 10:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/811181#M39964</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2022-05-03T10:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: Missing time-dependent covariate values</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/811329#M39989</link>
      <description>I will definitely try that out, thank you.</description>
      <pubDate>Tue, 03 May 2022 21:43:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Missing-time-dependent-covariate-values/m-p/811329#M39989</guid>
      <dc:creator>littleka</dc:creator>
      <dc:date>2022-05-03T21:43:55Z</dc:date>
    </item>
  </channel>
</rss>

