<?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 Comparing stratified logistic regression models to an unstratified model in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/633439#M30345</link>
    <description>&lt;P&gt;I am using SAS Studio and I'm trying to compare an unstratified logistic regression model to three models created after stratifying by one variable to see if there is a significant difference. I can visually look at the models and see that there is a difference, but is there a way to run a comparison to see if the difference is statistically significant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 21:11:36 GMT</pubDate>
    <dc:creator>greylondyn</dc:creator>
    <dc:date>2020-03-19T21:11:36Z</dc:date>
    <item>
      <title>Comparing stratified logistic regression models to an unstratified model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/633439#M30345</link>
      <description>&lt;P&gt;I am using SAS Studio and I'm trying to compare an unstratified logistic regression model to three models created after stratifying by one variable to see if there is a significant difference. I can visually look at the models and see that there is a difference, but is there a way to run a comparison to see if the difference is statistically significant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 21:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/633439#M30345</guid>
      <dc:creator>greylondyn</dc:creator>
      <dc:date>2020-03-19T21:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing stratified logistic regression models to an unstratified model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/633441#M30346</link>
      <description>&lt;P&gt;In any regression, a term in the model such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;stratum&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;will provide a test to see if the intercepts are different in the different strata, while a term such as&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;stratum * x&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;will provide a test to see if the slopes are different in the different strata.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 21:21:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/633441#M30346</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-03-19T21:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing stratified logistic regression models to an unstratified model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/633534#M30349</link>
      <description>&lt;P&gt;After getting predicted Y, could try&amp;nbsp; K-S test for each model and&lt;/P&gt;
&lt;P&gt;see which model's k-s value is higher .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc npar1way data=final_total_score plots=edfplot edf ;
class good_bad;
var total_score;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Or you could compare AUC of these two model.&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt;&amp;nbsp; wrote a couple of blog about AUC .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data all
 set A B;
run;
proc logistic data=all ;
model pred_y=score_a score_b/ nofit;
roc 'Model A' pred=score_a;
roc 'Model B' pred=score_b;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Mar 2020 11:12:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/633534#M30349</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-03-20T11:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing stratified logistic regression models to an unstratified model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/634112#M30371</link>
      <description>&lt;P&gt;It depends on what you mean by "stratified model". If you mean that you run your model with or without a effect modifier on some covariate of interest, then you can indeed test if the effect modifier is significant (in terms of p-value). It is just to test if there is an interaction effect.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, If stratified model means that you run a conditional logistic regression model by using the strata-statement, then I don't see any way to test if the variable used in the strata-statement change the result significant (in terms of p-value). You will have to judge if you find the strata variable has changed the result so much that your find the change "significant" (but then done use the word significant as it indicate you use a p-value). Also, It will most often not make sense to remove the variable in the strata statement, as it is given by the design of the model that the strata-variable has to be there (as in forexample a 1:k sampled case control study) .&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 13:56:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/634112#M30371</guid>
      <dc:creator>JacobSimonsen</dc:creator>
      <dc:date>2020-03-23T13:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing stratified logistic regression models to an unstratified model</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/634130#M30372</link>
      <description>&lt;P&gt;I don't think these are models that you compare and i'm not aware of a valid way to compare them. If the data was collected in strata resulting in observations that are correlated, then the analysis should reflect that structure. A conditional model is one way for the analysis to deal with that sampling scheme. An unconditional model would ignore the correlation and provide incorrect standard errors.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 14:41:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Comparing-stratified-logistic-regression-models-to-an/m-p/634130#M30372</guid>
      <dc:creator>StatDave</dc:creator>
      <dc:date>2020-03-23T14:41:26Z</dc:date>
    </item>
  </channel>
</rss>

