<?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: Statistical Analysis for Two groups (categorical and continuous covariates) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Statistical-Analysis-for-Two-groups-categorical-and-continuous/m-p/913112#M45321</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt; I am comparing the 1 year survival for a group of patients&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do not mention having data for the time at which patients died, so I assume you are modeling the probability of survival at the end of the year, conditional on the covariates in the model. I think a logistic regression is feasible, but you need to ask yourself which group of patients you are trying to compare.&amp;nbsp; Look at the EFFECTPLOT statement in PROC LOGISTIC or PROC PLM, as discussed in this article:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on how you specify the EFFECTPLOT statement, you can "slice and dice" the visualization of the model in many ways. For example, you could visualize the&amp;nbsp;probability as a function of age for each level of the 'disease risk' categorical variable, for specified values of the other explanatory variables. By default, the mean value of continuous variables are used. I like to specify a reference value for the classification variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 13:42:15 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2024-01-26T13:42:15Z</dc:date>
    <item>
      <title>Statistical Analysis for Two groups (categorical and continuous covariates)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statistical-Analysis-for-Two-groups-categorical-and-continuous/m-p/913059#M45319</link>
      <description>&lt;P&gt;I am comparing the 1 year survival for a group of patients (yes/no). I have a&amp;nbsp; three continuous variables (age, karnofsky scale, and comobidities) and I have three categorical variables (HLA match (two cats), related (two cats), disease risk (three cats)). I'm trying to pick the best test to use but can't quite nail it down. Can I use these variables as is? Or would I be better of converting the continuous variables into categorical? Either way which would be the best test and pariwise comparison?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 21:39:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statistical-Analysis-for-Two-groups-categorical-and-continuous/m-p/913059#M45319</guid>
      <dc:creator>michelconn</dc:creator>
      <dc:date>2024-01-25T21:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical Analysis for Two groups (categorical and continuous covariates)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statistical-Analysis-for-Two-groups-categorical-and-continuous/m-p/913096#M45320</link>
      <description>&lt;P&gt;I don't think you will get there with a simple hypothesis test.&lt;/P&gt;
&lt;P&gt;You need a statistical model.&lt;/P&gt;
&lt;P&gt;A model that explains/predicts your binary target.&lt;/P&gt;
&lt;P&gt;You could consider logistic regression, for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 10:11:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statistical-Analysis-for-Two-groups-categorical-and-continuous/m-p/913096#M45320</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-01-26T10:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical Analysis for Two groups (categorical and continuous covariates)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statistical-Analysis-for-Two-groups-categorical-and-continuous/m-p/913112#M45321</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; I am comparing the 1 year survival for a group of patients&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You do not mention having data for the time at which patients died, so I assume you are modeling the probability of survival at the end of the year, conditional on the covariates in the model. I think a logistic regression is feasible, but you need to ask yourself which group of patients you are trying to compare.&amp;nbsp; Look at the EFFECTPLOT statement in PROC LOGISTIC or PROC PLM, as discussed in this article:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2016/06/22/sas-effectplot-statement.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Depending on how you specify the EFFECTPLOT statement, you can "slice and dice" the visualization of the model in many ways. For example, you could visualize the&amp;nbsp;probability as a function of age for each level of the 'disease risk' categorical variable, for specified values of the other explanatory variables. By default, the mean value of continuous variables are used. I like to specify a reference value for the classification variables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 13:42:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statistical-Analysis-for-Two-groups-categorical-and-continuous/m-p/913112#M45321</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2024-01-26T13:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Statistical Analysis for Two groups (categorical and continuous covariates)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Statistical-Analysis-for-Two-groups-categorical-and-continuous/m-p/913128#M45323</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp;alluded to, logistic regression is probably ok to use if all you have is 1-year survival (yes/no). However, if you actually have survival times for each person (e.g., person 1 survived 5 years, person 2 survived 6 months, person 3 was lost to follow-up at 3 years), you should generally not use logistic regression and instead prefer a model tailored to survival data. One possibility is proportional hazards regression, which can be implemented using PROC PHREG.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To your question about categorizing continuous variables, you should almost always avoid doing that. Rather, use a model that can accommodate continuous predictors.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 15:05:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Statistical-Analysis-for-Two-groups-categorical-and-continuous/m-p/913128#M45323</guid>
      <dc:creator>Mike_N</dc:creator>
      <dc:date>2024-01-26T15:05:07Z</dc:date>
    </item>
  </channel>
</rss>

