<?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: Logistic model not fit for the data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779167#M38217</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Probably my message was not clear.&lt;/P&gt;&lt;P&gt;I have age information (age category) for both migrants and non migrants.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;12-17 yrs, 18-29 yrs, 30-49 yrs, 50-64 yrs and 65 yrs and above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable I mentioned before was&amp;nbsp; time since migration which was categorized into 5 categories based on how many years passsed since first migration.&lt;/P&gt;&lt;P&gt;The hypothesis was that you will face more barriers if you are a recent migrant.&lt;/P&gt;&lt;P&gt;Time since migration was 4 categories, and since non-migrants would not have this data, they were on the fifth category.&lt;/P&gt;&lt;P&gt;1. before 20 years (time since migration is &amp;gt;20 yrs)&lt;/P&gt;&lt;P&gt;2. 10-20 years ( (time since migration is 10-20 yrs)&lt;/P&gt;&lt;P&gt;3. 3-10 years&amp;nbsp; (time since migration is&amp;nbsp; 3-10 yrs)&lt;/P&gt;&lt;P&gt;4. last 2 years&amp;nbsp; (migrated in last 2 years from the study date)&lt;/P&gt;&lt;P&gt;5. non-migrants&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried merging category 1-4 (migrants) and comparison group as non-migrants.&lt;/P&gt;&lt;P&gt;There is a significant interaction between migration status and current age category. The hosmer lemeshhow goodness of fit statistics shows poor model fit (p&amp;lt;0.0001)&lt;/P&gt;&lt;P&gt;when I look at bivariate relationship between age category and vaccination by migration status there is a reverse relationship. I.e. oldest age category (65 yrs and above) have the highest vaccination rate in non-migrants whereas migrants have the lowest vaccination rate in 65 yrs and above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact, the relationship between age category and vacination (OUTCOME) has&amp;nbsp; ' inveretd U shape ' relation, and among non-migrants is 'J' shaped relation.&lt;/P&gt;&lt;P&gt;I have current age as a both continuous variable and categorical variable for both migrants and non-migrants.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Nov 2021 17:36:21 GMT</pubDate>
    <dc:creator>yubaraj</dc:creator>
    <dc:date>2021-11-08T17:36:21Z</dc:date>
    <item>
      <title>Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/778863#M38188</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I am trying to compare flu vaccination&amp;nbsp; coded 1 or 0 among immigrant and non-immigrant population.&lt;/P&gt;&lt;P&gt;I have current age category, income quintile, urban/rural , gender and years since migration as variables.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Years since migration has 5 categories :&lt;/P&gt;&lt;P&gt;1. before 20 years&lt;/P&gt;&lt;P&gt;2. 10-20 years&lt;/P&gt;&lt;P&gt;3. 3-10 years&lt;/P&gt;&lt;P&gt;4. last 2 years&amp;nbsp;&lt;/P&gt;&lt;P&gt;5. non-migrants&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I run a logistic regression model, using the following command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc logistic data=surv1 descending;&lt;BR /&gt;class agecat(param=ref ref='3') GENDER (param=ref ref='M') rural (param=ref ref='0') ses(param=ref ref='4') imm_cat&amp;nbsp; (param=ref ref='5');&lt;BR /&gt;model doc_visit(ref='0') = agecat GENDER rural ses&amp;nbsp; imm_cat / risklimits lackfit selection=stepwise slentry=0.1 slstay=0.05 details lackfit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It gives me the nice output with all the variables showing association but, the hosmer and lemmeshow goodness of fit test shows p&amp;lt;0.0001.&lt;/P&gt;&lt;P&gt;I included interaction term for age category and imm_cat it slightly improved the model (interaction is highly significant)&amp;nbsp; fit but goodness of fit statistics is still p&amp;lt;0.0001.&lt;/P&gt;&lt;P&gt;When I look at the cross tabulation for age category and doctor visit, the relationship among immigrants is inverted U shaped. You are more likely to get vaccine at the middle age and less likely to get if you are younger (12 years-18) or 65+.&lt;/P&gt;&lt;P&gt;However, age and vaccination showed a 'J' shaped relation in non-immigrants. you have highest chances of vaccination if you are oldest and least chance at the middle age.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if this reverse relationship between age category and outcome among migrants and non-migrants&amp;nbsp; is the cause for logistic model not fitting.&lt;/P&gt;&lt;P&gt;Someone suggested me to include spline effect for age (age as a continuous variable) and I included "agesp" in the model but the model is still not fit.&lt;/P&gt;&lt;PRE class=""&gt; effect agesp = spline&lt;SPAN&gt;(ageyrs&lt;/SPAN&gt; / naturalcubic basis=tpf&lt;SPAN&gt;(&lt;/SPAN&gt;noint&lt;SPAN&gt;)&lt;/SPAN&gt; knotmethod=percentiles&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;I also tried to fit using general linear models but the same problem.&amp;nbsp; am using SAS 9.4 . Apologies I can not share the data.&lt;/P&gt;&lt;P&gt;It would be nice to hear your suggestion,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Yuba&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 18:55:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/778863#M38188</guid>
      <dc:creator>yubaraj</dc:creator>
      <dc:date>2021-11-05T18:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/778865#M38189</link>
      <description>&lt;P&gt;What question is this model supposed to answer?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can't fit a spline to agecat, because it is not continuous, you can't say that "non-migrants" are on the same scale as the &amp;lt;2years, 3-10yrs, etc.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Nov 2021 18:59:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/778865#M38189</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-05T18:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/778868#M38191</link>
      <description>The question I am trying to answer is :&lt;BR /&gt;1. Do immigrants have a different vaccination probability compared to non-migrants?&lt;BR /&gt;2. Does years since migration has an effect on vaccination?&lt;BR /&gt;I fitted spline to age as a continuous variable in the second attempt, and did not include age as a categorical variable.&lt;BR /&gt;Do you suggest just having migrants and non-migrants (two categories for the question 1).&lt;BR /&gt;and model only selecting sample of immigrants for question 2.&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Nov 2021 19:06:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/778868#M38191</guid>
      <dc:creator>yubaraj</dc:creator>
      <dc:date>2021-11-05T19:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/778972#M38208</link>
      <description>&lt;P&gt;Given the design, as I understand it, where you have age groups for migrants but not for non-migrants (am I understanding that properly?), then I think the best thing you can do is to consider the migration variable as having five categories as you described in your original message&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;1. before 20 years&lt;/P&gt;
&lt;P&gt;2. 10-20 years&lt;/P&gt;
&lt;P&gt;3. 3-10 years&lt;/P&gt;
&lt;P&gt;4. last 2 years&lt;/P&gt;
&lt;P&gt;5. non-migrants&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;and then treating this as a CLASS variable in PROC LOGISTIC. You could then determine if the linear effect of age using just the first four groups was statistically significant, but you could not come to any conclusion about the effect of age for non-migrants.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or maybe you could analyze the migrants only, and leave the non-migrants out, in which case you can easily determine the effect of age on migrants. Again, you could not come to any conclusion about the effect of age for non-migrants.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Probably too late, but a better design would have been to collect ages for non-migrants as well.&lt;/P&gt;</description>
      <pubDate>Sun, 07 Nov 2021 10:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/778972#M38208</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-07T10:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779167#M38217</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Probably my message was not clear.&lt;/P&gt;&lt;P&gt;I have age information (age category) for both migrants and non migrants.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;12-17 yrs, 18-29 yrs, 30-49 yrs, 50-64 yrs and 65 yrs and above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable I mentioned before was&amp;nbsp; time since migration which was categorized into 5 categories based on how many years passsed since first migration.&lt;/P&gt;&lt;P&gt;The hypothesis was that you will face more barriers if you are a recent migrant.&lt;/P&gt;&lt;P&gt;Time since migration was 4 categories, and since non-migrants would not have this data, they were on the fifth category.&lt;/P&gt;&lt;P&gt;1. before 20 years (time since migration is &amp;gt;20 yrs)&lt;/P&gt;&lt;P&gt;2. 10-20 years ( (time since migration is 10-20 yrs)&lt;/P&gt;&lt;P&gt;3. 3-10 years&amp;nbsp; (time since migration is&amp;nbsp; 3-10 yrs)&lt;/P&gt;&lt;P&gt;4. last 2 years&amp;nbsp; (migrated in last 2 years from the study date)&lt;/P&gt;&lt;P&gt;5. non-migrants&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried merging category 1-4 (migrants) and comparison group as non-migrants.&lt;/P&gt;&lt;P&gt;There is a significant interaction between migration status and current age category. The hosmer lemeshhow goodness of fit statistics shows poor model fit (p&amp;lt;0.0001)&lt;/P&gt;&lt;P&gt;when I look at bivariate relationship between age category and vaccination by migration status there is a reverse relationship. I.e. oldest age category (65 yrs and above) have the highest vaccination rate in non-migrants whereas migrants have the lowest vaccination rate in 65 yrs and above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In fact, the relationship between age category and vacination (OUTCOME) has&amp;nbsp; ' inveretd U shape ' relation, and among non-migrants is 'J' shaped relation.&lt;/P&gt;&lt;P&gt;I have current age as a both continuous variable and categorical variable for both migrants and non-migrants.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 17:36:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779167#M38217</guid>
      <dc:creator>yubaraj</dc:creator>
      <dc:date>2021-11-08T17:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779170#M38218</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;Probably my message was not clear.&lt;/P&gt;
&lt;P&gt;I have age information (age category) for both migrants and non migrants.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;12-17 yrs, 18-29 yrs, 30-49 yrs, 50-64 yrs and 65 yrs and above.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The variable I mentioned before was&amp;nbsp; time since migration which was categorized into 5 categories based on how many years passsed since first migration.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So in light of this new information/clarification, what is your question?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 17:50:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779170#M38218</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-11-08T17:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779180#M38222</link>
      <description>&lt;P&gt;I almost always prefer a modeling approach to questions like this, but this looks to me to be a classic Cochran-Mantel-Haenszel situation.&amp;nbsp; Stratifying by age category, you get five 2x2 tables (immigrant status by injection status).&amp;nbsp; Have you looked at this approach?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=yourdata;
tables agecat*imm_cat*doc_visit/all commonriskdiff;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I realize this doesn't address gender, income, time since immigration, etc., but this high level analysis will point out whether you need to include other factors.&amp;nbsp; Since you are employing some sort of stepwise variable selection, it might be good to see first if there is a common risk difference across the age categories.&amp;nbsp; Then a deeper dive could explain why it differs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 18:22:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779180#M38222</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-11-08T18:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779184#M38223</link>
      <description>&lt;P&gt;So, this is the model I am using&lt;/P&gt;&lt;P&gt;proc logistic data=surv descending;&lt;BR /&gt;class age_cat(param=ref ref='4') GENDER (param=ref ref='M') rural (param=ref ref='1') INC_QUINT(param=ref ref='Q5') imm_ref_status(param=ref ref='0');&lt;BR /&gt;model full_vaccination1 = age_cat GENDER rural INC_QUINT imm_ref_status / risklimits lackfit selection=stepwise slentry=0.1 slstay=0.05 details lackfit;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;The result shows everything in the model is significant. However, poor model fit. Hosmer Lemesshow goodness of fit is (p&amp;lt;0.0001).&lt;BR /&gt;Adding interaction term (age_cat*imm_ref_status) slightly improves the model fit but still (p&amp;lt;0.0001) .&lt;BR /&gt;Adding higher order term for age as a continous variable I.e age*age, age*age*age and adding spline for 'age' also does not work. Also tried using log transformation for the age as a continuous variable also does not provide a model fit.&lt;BR /&gt;So, my question is what are the alternatives when model fit is not achieved. or should I change my modelling strategy. or any other suggestions please.&amp;nbsp;&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 18:27:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779184#M38223</guid>
      <dc:creator>yubaraj</dc:creator>
      <dc:date>2021-11-08T18:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779188#M38226</link>
      <description>&lt;P&gt;Well, perhaps Hosmer-Lemeshow isn't the best choice for goodness of fit.&amp;nbsp; Per the documentation:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;SPAN style="font-family: inherit;"&gt;Hosmer and Lemeshow (&lt;/SPAN&gt;&lt;A style="font-family: inherit; background-color: #ffffff;" href="http://127.0.0.1:60468/help/statug.hlp/statug_logistic_references.htm#statug_logistichosm_d00" target="_blank"&gt;2000&lt;/A&gt;&lt;SPAN style="font-family: inherit;"&gt;) proposed a statistic that they show, through simulation, is distributed as chi-square &lt;EM&gt;&lt;STRONG&gt;when there is no replication&lt;/STRONG&gt;&lt;/EM&gt; in any of the subpopulations"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;I suspect that your categorical variables lead to substantial replication within some of the subpopulations.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;When you do have replication and a fair sized sample, check on using the AGGREGATE statement so you can get the Pearson and Deviance goodness of fit tests.&amp;nbsp; If the data get sparse with all of this, the Details section outlines several other methods.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;SteveDenham&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 18:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779188#M38226</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2021-11-08T18:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779201#M38228</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;SPAN&gt;SteveDenham for your suggestions&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;your approach showed that there are&amp;nbsp; heterogenous odds ratios for&amp;nbsp; vaccination visits by&amp;nbsp; migration status depending on different age category.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That means chances of vaccination by migration status is dependent&amp;nbsp; on&amp;nbsp; third variable (i.e) which age category&amp;nbsp; you are.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That means including interaction terms for migration status (imm_ref_status) and age category (age_cat) was a reasonable approach.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But this still does not answer my questions.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;what are the alternatives when model fit is not achieved. or should I change my modelling strategy. or any other suggestions please.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 18:59:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779201#M38228</guid>
      <dc:creator>yubaraj</dc:creator>
      <dc:date>2021-11-08T18:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Logistic model not fit for the data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779204#M38229</link>
      <description>&lt;PRE&gt;proc logistic data=surv1 descending;
class  age_cat (param=ref ref='4') GENDER (param=ref ref='M') rural (param=ref ref='1') INC_QUINT (param=ref ref='Q5') imm_ref_status(param=ref ref='0');
model full_vaccination1 =   age_cat  GENDER  rural INC_QUINT_2016 age_cat*imm_ref_status  / risklimits  selection=stepwise slentry=0.1 slstay=0.05 details  aggregate=( age_cat imm_ref_status INC_QUINT rural GENDER)scale=noone;
run;

&lt;/PRE&gt;&lt;P&gt;I run the model with aggregate statement, and scale=noone&lt;/P&gt;&lt;P&gt;Deviance and Pearson GF test are both p&amp;lt;0.0001.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Nov 2021 19:24:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Logistic-model-not-fit-for-the-data/m-p/779204#M38229</guid>
      <dc:creator>yubaraj</dc:creator>
      <dc:date>2021-11-08T19:24:28Z</dc:date>
    </item>
  </channel>
</rss>

