<?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 make P&amp;gt;ChiSq? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583749#M166212</link>
    <description>&lt;P&gt;Paige,&lt;/P&gt;
&lt;P&gt;I think OP want to do Goodness Of Fit test (H-L Test) in option LACKFIT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From OP's code , it apparently is doing Credit Score Card.&lt;/P&gt;
&lt;P&gt;Improving GOF is a very broad and difficulty topic.&lt;/P&gt;
&lt;P&gt;You can do this from two aspects( variables and outliers).&lt;/P&gt;
&lt;P&gt;Check X variables is multicollinearity ? by using corrb option(drop correlation coefficient is bigger than 0.8) :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MODEL INS=&lt;/SPAN&gt;&lt;BR /&gt;............&lt;BR /&gt;&lt;SPAN&gt;/LACKFIT&amp;nbsp; &lt;STRONG&gt;CORRB&lt;/STRONG&gt; ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check if there are some outliers by option&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;output out=output &lt;STRONG&gt;h=h c=c cbar=cbar&lt;/STRONG&gt; predicted=PredProb;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And use FIRTH option of MODEL to improve GOF .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 25 Aug 2019 12:16:37 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2019-08-25T12:16:37Z</dc:date>
    <item>
      <title>How to make P&gt;ChiSq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583673#M166165</link>
      <description>&lt;P&gt;Hi!&lt;BR /&gt;&lt;BR /&gt;I have been asked to work on a dataset where P needs to be greater than ChiSq.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, every time I run the code my P is &amp;lt;0.0001.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is thee any method using which my P can be greater than ChiSq?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code which I ran is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC LOGISTIC DATA=CSD.DEV descending;&lt;BR /&gt;MODEL INS=&lt;BR /&gt;/*DDABAL_WOE*/&lt;BR /&gt;SavBal_WOE&lt;BR /&gt;ATMAmt_WOE&lt;BR /&gt;CDBal_WOE&lt;BR /&gt;/*MMBal_WOE*/&lt;BR /&gt;/*Dep_WOE*/&lt;BR /&gt;DepAmt_WOE&lt;BR /&gt;/*DDA_WOE*/&lt;BR /&gt;/*Sav_WOE*/&lt;BR /&gt;/*CD_WOE*/&lt;BR /&gt;/*MM_WOE*/&lt;BR /&gt;/LACKFIT RSQ;/*H.L. test*/&lt;BR /&gt;OUTPUT OUT = CSD.OUT P = PRED;&lt;BR /&gt;QUIT;&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S.: I'm new!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2019 15:06:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583673#M166165</guid>
      <dc:creator>MeghnaRoy9</dc:creator>
      <dc:date>2019-08-24T15:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to make P&gt;ChiSq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583709#M166190</link>
      <description>&lt;P&gt;I'm afraid the question doesn't make sense to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P (probability) &amp;gt; Chi-squared might mean that you are performing one of many different statistical tests. (Which test?)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Prob &amp;gt; Chi-squared is a standard statistical output from PROC LOGISTIC and many other SAS procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But really, you need more explanation to help us understand what you want. Or maybe you need to understand the question better before you explain it to us.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Aug 2019 21:16:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583709#M166190</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-24T21:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to make P&gt;ChiSq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583723#M166194</link>
      <description>&lt;P&gt;"P &amp;gt; ChiSq" is the name of the statistic resulting from the analysis. You need a basic course in statistics to understand what this means.&amp;nbsp; When the statistic takes a value &amp;lt; 0.0001 for a model parameter estimate, that parameter is considered highly statistically significant, i.e. important to explain the dependent variable on the left of the = sign.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 03:03:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583723#M166194</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2019-08-25T03:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to make P&gt;ChiSq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583728#M166197</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/284738"&gt;@MeghnaRoy9&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not sure of what you want. However, here is a silly example of a contingency table to test the proportion of M:F in 60:40 per cents.&lt;/P&gt;
&lt;P&gt;Are you interested in such an example?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input gen $1. yes  no;
datalines;
M 3 2
F 2 3
;
run;

proc freq data=have;
 tables gen/
  nocum chisq testp=(60 40);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;PRE&gt;The Chisquare = 0.0833&lt;BR /&gt;DF = 1&lt;BR /&gt;Prob = 0.7728&lt;/PRE&gt;</description>
      <pubDate>Sun, 25 Aug 2019 04:55:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583728#M166197</guid>
      <dc:creator>KachiM</dc:creator>
      <dc:date>2019-08-25T04:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to make P&gt;ChiSq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583749#M166212</link>
      <description>&lt;P&gt;Paige,&lt;/P&gt;
&lt;P&gt;I think OP want to do Goodness Of Fit test (H-L Test) in option LACKFIT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From OP's code , it apparently is doing Credit Score Card.&lt;/P&gt;
&lt;P&gt;Improving GOF is a very broad and difficulty topic.&lt;/P&gt;
&lt;P&gt;You can do this from two aspects( variables and outliers).&lt;/P&gt;
&lt;P&gt;Check X variables is multicollinearity ? by using corrb option(drop correlation coefficient is bigger than 0.8) :&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;MODEL INS=&lt;/SPAN&gt;&lt;BR /&gt;............&lt;BR /&gt;&lt;SPAN&gt;/LACKFIT&amp;nbsp; &lt;STRONG&gt;CORRB&lt;/STRONG&gt; ;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Check if there are some outliers by option&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;output out=output &lt;STRONG&gt;h=h c=c cbar=cbar&lt;/STRONG&gt; predicted=PredProb;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;And use FIRTH option of MODEL to improve GOF .&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 12:16:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583749#M166212</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-08-25T12:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to make P&gt;ChiSq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583751#M166213</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Paige,&lt;/P&gt;
&lt;P&gt;I think OP want to do Goodness Of Fit test (H-L Test) in option LACKFIT.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I do not get that understanding from the original question. I wait for the original poster to clarify his/her question.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 12:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583751#M166213</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-08-25T12:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to make P&gt;ChiSq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583752#M166214</link>
      <description>&lt;P&gt;By the way, If you have a big table (like a million) , You will always get&amp;nbsp;&lt;SPAN&gt;P is &amp;lt;0.0001.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;That is the drawback of GOF .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Actually any GOF in statistical test is going to fail for big table .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 12:21:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583752#M166214</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-08-25T12:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to make P&gt;ChiSq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583753#M166215</link>
      <description>&lt;P&gt;In OP's post . Here is :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/LACKFIT RSQ;/*&lt;STRONG&gt;H.L. test&lt;/STRONG&gt;*/&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 12:23:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583753#M166215</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-08-25T12:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to make P&gt;ChiSq?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583773#M166218</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;In OP's post . Here is :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;/LACKFIT RSQ;/*&lt;STRONG&gt;H.L. test&lt;/STRONG&gt;*/&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Given the OP doesn't understand a P&amp;gt;CHISQ I wouldn't assume that s/he understands this code or wants that test and would also wait for clarification.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Aug 2019 16:55:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-make-P-gt-ChiSq/m-p/583773#M166218</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-08-25T16:55:03Z</dc:date>
    </item>
  </channel>
</rss>

