<?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: How to conduct a conditional logitic regression model on a 1:2 matched cased-control study? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787277#M251536</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I was reviewing this article (&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_phreg_examples05.htm)" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_phreg_examples05.htm)&lt;/A&gt; as well, but I don't quite understand why there is a time variable and the author included&amp;nbsp; a line "time = 2-low".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="xisDoc-code"&gt;data LBW;
   input id Age Low LWT Smoke HT UI @@;
   Time=2-Low;
   datalines;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="xisDoc-code"&gt;proc phreg data=LBW;
   model Time*Low(0)= LWT Smoke HT UI / ties=discrete;
   strata Age;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have a variable that indicates which 2 controls are matched with the 1 case. Would it be a problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, should I use the below code? What would be my "time" variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc phreg data=test;&lt;/P&gt;
&lt;P&gt;model Time*Lung Cancer(0)=&amp;nbsp;&lt;SPAN&gt;smoking&amp;nbsp; family history of cancer&amp;nbsp; COPD&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;/ ties=discrete;&lt;/P&gt;
&lt;P&gt;strata &lt;SPAN&gt;age&amp;nbsp; gender race&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 23 Dec 2021 18:53:55 GMT</pubDate>
    <dc:creator>Denali</dc:creator>
    <dc:date>2021-12-23T18:53:55Z</dc:date>
    <item>
      <title>How to conduct a conditional logitic regression model on a 1:2 matched cased-control study?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787274#M251533</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a matched case-control study with 1 case (lung cancer patient) matched with 2 controls on age, gender and race. I would like to conduct a conditional logistic regression to examine the association between smoking, family history of cancer, COPD and risk of lung cancer constrolling for the matching variables.&lt;/P&gt;
&lt;P&gt;I would like to run univariate conditional logistic regression model for each of the above variable with the outcome of lung cancer (yes/no).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Further, the&amp;nbsp;multivariable conditional logistic regression model will be:&amp;nbsp; lung cancer (yes/no) = smoking + family history of cancer + COPD + age + gender + race&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I need to create dummy variables for the categorical variables such as lung cancer (y/n) or smoking (y/n) in order to conduct a logistic regression? Can anyone please provide the example of SAS code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787274#M251533</guid>
      <dc:creator>Denali</dc:creator>
      <dc:date>2021-12-23T18:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to conduct a conditional logitic regression model on a 1:2 matched cased-control study?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787275#M251534</link>
      <description>&lt;P&gt;You do not need to create dummy variables, you put them in the CLASS statement of either PROC LOGISTIC or PHREG. Add the PARAM=REF option if you want referential (Dummy coding).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;class &amp;lt;list of categorical variables&amp;gt; / param=REF;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;H3 class="xis-title"&gt;Example 76.2 Logistic Modeling with Categorical Predictors&lt;/H3&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_logistic_examples02.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_logistic_examples02.htm&lt;/A&gt;&lt;/P&gt;
&lt;H3 class="xis-title"&gt;Example 89.5 Conditional Logistic Regression for m:n Matching&lt;/H3&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_phreg_examples05.htm" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_phreg_examples05.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140136"&gt;@Denali&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a matched case-control study with 1 case (lung cancer patient) matched with 2 controls on age, gender and race. I would like to conduct a conditional logistic regression to examine the association between smoking, family history of cancer, COPD and risk of lung cancer constrolling for the matching variables.&lt;/P&gt;
&lt;P&gt;I would like to run univariate conditional logistic regression model for each of the above variable with the outcome of lung cancer (yes/no).&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Further, the&amp;nbsp;multivariable conditional logistic regression model will be:&amp;nbsp; lung cancer (yes/no) = smoking + family history of cancer + COPD + age + gender + race&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do I need to create dummy variables for the categorical variables such as lung cancer (y/n) or smoking (y/n) in order to conduct a logistic regression? Can anyone please provide the example of SAS code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:34:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787275#M251534</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-23T18:34:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to conduct a conditional logitic regression model on a 1:2 matched cased-control study?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787277#M251536</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I was reviewing this article (&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_phreg_examples05.htm)" target="_blank"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_phreg_examples05.htm)&lt;/A&gt; as well, but I don't quite understand why there is a time variable and the author included&amp;nbsp; a line "time = 2-low".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="xisDoc-code"&gt;data LBW;
   input id Age Low LWT Smoke HT UI @@;
   Time=2-Low;
   datalines;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="xisDoc-code"&gt;proc phreg data=LBW;
   model Time*Low(0)= LWT Smoke HT UI / ties=discrete;
   strata Age;
run;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have a variable that indicates which 2 controls are matched with the 1 case. Would it be a problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, should I use the below code? What would be my "time" variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc phreg data=test;&lt;/P&gt;
&lt;P&gt;model Time*Lung Cancer(0)=&amp;nbsp;&lt;SPAN&gt;smoking&amp;nbsp; family history of cancer&amp;nbsp; COPD&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;/ ties=discrete;&lt;/P&gt;
&lt;P&gt;strata &lt;SPAN&gt;age&amp;nbsp; gender race&lt;/SPAN&gt;;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 18:53:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787277#M251536</guid>
      <dc:creator>Denali</dc:creator>
      <dc:date>2021-12-23T18:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to conduct a conditional logitic regression model on a 1:2 matched cased-control study?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787278#M251537</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140136"&gt;@Denali&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I was reviewing this article (&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_phreg_examples05.htm)" target="_blank" rel="noopener"&gt;https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.4/statug/statug_phreg_examples05.htm)&lt;/A&gt; as well, but I don't quite understand why there is a time variable and the author included&amp;nbsp; a line "time = 2-low".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my case, should I use the below code? What would be my "time" variable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;You create the time variable, its not really a measure of time, just a constant to allow the model to be equivalent.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;The following is also in that example:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;m:n&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;matching refers to the situation in which there is a varying number of cases and controls in the matched sets. You can perform conditional logistic regression with the PHREG procedure by using the discrete logistic model and forming a stratum for each matched set.&lt;STRONG&gt; In addition, you need to create dummy survival times so that all&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;A id="statug.phreg.a0000000774" class="indexterm" target="_blank"&gt;&lt;/A&gt;&lt;A id="statug.phreg.a0000000775" class="indexterm" target="_blank"&gt;&lt;/A&gt;&lt;A id="statug.phreg.a000000077501" class="indexterm" target="_blank"&gt;&lt;/A&gt;the cases in a matched set have the same event time value, and the corresponding controls are censored at later times.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;The variable&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;Time&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;is the response, and&amp;nbsp;&lt;/SPAN&gt;&lt;CODE class="aa-varname"&gt;Low&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;is the censoring variable.&amp;nbsp;&lt;/SPAN&gt;&lt;A id="statug.phreg.a0000000777" class="indexterm" target="_blank"&gt;&lt;/A&gt;&lt;U&gt;Note that the data set is created so that all the cases have the same event time and the controls have later censored times.&amp;nbsp;&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140136"&gt;@Denali&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do not have a variable that indicates which 2 controls are matched with the 1 case. Would it be a problem?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, that is a problem - you'll need to add/create that variable to identify the case/control matches. If you used PSMATCH it typically includes that variable.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:02:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787278#M251537</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-23T19:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to conduct a conditional logitic regression model on a 1:2 matched cased-control study?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787280#M251539</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;It seems like it might not be the code for my project because I have 1:2 matched design. 1 case always has 2 matched controls.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please correct me if I am wrong, but I think&amp;nbsp;the other article that you provided was just for the regular (unconditional) logistic regression, not for the matched design - conditional logistic regression.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure which code I can use.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787280#M251539</guid>
      <dc:creator>Denali</dc:creator>
      <dc:date>2021-12-23T19:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to conduct a conditional logitic regression model on a 1:2 matched cased-control study?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787282#M251540</link>
      <description>You indicated you wanted to do univariate analysis and multivariate analysis, which is partly why I included the first link which is just logistic regression but it wouldn't account for the matching. I also know that most users will also run an analysis on the unmatched data to see what the differences are between the models but maybe that's just something we did internally (Cancer Clinical trials research). &lt;BR /&gt;&lt;BR /&gt;Otherwise the PROC PHREG example should be all you need.</description>
      <pubDate>Thu, 23 Dec 2021 19:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787282#M251540</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-23T19:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to conduct a conditional logitic regression model on a 1:2 matched cased-control study?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787284#M251542</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;I see. Thanks for sending me the first link. I just realized that&amp;nbsp;Mantel-Haenszel test (categorical variable) and paired t-test (continuous variable) would be the univariate analyses with consideration of the matching design.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the phreg is the code that I need, what would be the time variable in my case? I am sorry that I did read through the article (and of course the paragraphs you copied and pasted), but I still don't know how to create dummy for my data.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Dec 2021 19:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787284#M251542</guid>
      <dc:creator>Denali</dc:creator>
      <dc:date>2021-12-23T19:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to conduct a conditional logitic regression model on a 1:2 matched cased-control study?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787286#M251544</link>
      <description>You manually create a time variable such that the following is true:&lt;BR /&gt;cases in a matched set have the same event time value, and the corresponding controls are censored at later times.&lt;BR /&gt;So you can set each control to 2 and each case to 1.&lt;BR /&gt;&lt;BR /&gt;Again from the example: The variable Low is used to determine whether the subject is a case (Low=1, low-birth-weight baby) or a control (Low=0, normal-weight baby). The dummy time variable Time takes the value 1 for cases and 2 for controls. (2-Low)</description>
      <pubDate>Thu, 23 Dec 2021 20:14:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-conduct-a-conditional-logitic-regression-model-on-a-1-2/m-p/787286#M251544</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-12-23T20:14:07Z</dc:date>
    </item>
  </channel>
</rss>

