<?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: Write a code on SAS on likelihood ratio in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926120#M364423</link>
    <description>&lt;P&gt;I have attached the base code for better understanding &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 27 Apr 2024 01:25:42 GMT</pubDate>
    <dc:creator>Arjayita</dc:creator>
    <dc:date>2024-04-27T01:25:42Z</dc:date>
    <item>
      <title>Write a code on SAS on likelihood ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926116#M364419</link>
      <description>I have one dataset DORMANT_PCA_CC which has fourteen variables. Bu_419_DQ, Bu_26_ab_num, Bu_345_hn_num, rr_chr_105, bu_162_gg_num, rr_chr_169, bu_799_teb_num, rr_chr_111, bu_301_pl_num, bu_1552_shc_num, bu_1577_ric_num, rr_chr_122, e1_b_07, bu_670_uz_num.&lt;BR /&gt;i want to drop one variable which is bu_670_uz_num.&lt;BR /&gt;&lt;BR /&gt;If I want to test whether the drop out variable bu_670_uz_num is significant or not, I shall perform a likelihood ratio test of two models. How to write a code on SAS to check the change in likelihood?&lt;BR /&gt;&lt;BR /&gt;thanks in advance</description>
      <pubDate>Sat, 27 Apr 2024 01:13:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926116#M364419</guid>
      <dc:creator>Arjayita</dc:creator>
      <dc:date>2024-04-27T01:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Write a code on SAS on likelihood ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926119#M364422</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=""&gt;LIBNAME dev "/team/decision_science/Customer_Modelling/Project/013_Foundation_Customer_Score/Data/Development Sample/Jun19/Stratified Samples" access=readonly;
LIBNAME MRAV "/team/analytics_mod/Technical_Validation/01_Retail/04_Unsecured/FCS_StageD_Rerun/Data";

data dormant_pca_cc;
    set dev.fcs_jun19_dorm_pca_cc_build;
	drop CSV2_2_exclusion_7_bnkrpt CSV2_2_exclusion_8_dceasd CSV2_2_exclusion_9_basic_dorm
		 bcoms_active_9m_frm_Jun19 bcoms_stays_active_9m_frm_Jun19;
run;

%SYSMSTORECLEAR;
LIBNAME modmacro "/team/decision_science/xTeam/.modelling_macro/" access=readonly;
OPTIONS noimplmac obs=max mstored sasmstore=modmacro;

* Create the bindings dataset *;
DATA bandings;
     LENGTH varname $ 40 grps $ 2000;
     INPUT type modtype inmod varname $ grps $;
CARDS;
2 1 1 BU_419_DQ :"0_","U","ND":
1 1 1 BU_26_AB_NUM :0:
1 1 1 BU_345_HN_NUM :0:25:75:
1 1 1 RR_CHR_105 :200:
1 1 1 BU_162_GG_NUM :120:180:360:
1 1 1 RR_CHR_169 :-9999997:5:30:
1 1 1 BU_799_TEB_NUM :0:1:2:
1 1 1 RR_CHR_111 :2000:
1 1 1 BU_301_PL_NUM :0:
1 1 1 BU_1552_SHC_NUM :.N:0:
1 1 1 BU_1577_RIC_NUM :0:50:
1 1 1 RR_CHR_122 :0:
2 1 1 E1_B_07 :"0","N","T","U":
1 1 1 bu_670_uz_num :-1:1000:
;
RUN;

* Create the dataset labels *;
DATA labels;
     LENGTH varname $ 15 grps $ 300;
     INPUT varname $ grps $;
CARDS;
RUN;


* Execute the model SAS macro *;
%MODEL(
     set=dormant_pca_cc,
     scoreset=MRAV.dormant_pca_cc,
     outcome=FCS_bad_9m_Jun19,
     weight=weight,
     holdout=holdout,
     oscore=CSv2_2,
     drop=1,
     user=Arjayita Ghosh,
     progname=Dormant_PCA_CC
);


&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 27 Apr 2024 01:25:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926119#M364422</guid>
      <dc:creator>Arjayita</dc:creator>
      <dc:date>2024-04-27T01:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Write a code on SAS on likelihood ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926120#M364423</link>
      <description>&lt;P&gt;I have attached the base code for better understanding &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2024 01:25:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926120#M364423</guid>
      <dc:creator>Arjayita</dc:creator>
      <dc:date>2024-04-27T01:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: Write a code on SAS on likelihood ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926130#M364430</link>
      <description>Check &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13684"&gt;@Rick_SAS&lt;/a&gt; blogs:&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/iml/2024/03/27/likelihood-ratio-test.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2024/03/27/likelihood-ratio-test.html&lt;/A&gt;</description>
      <pubDate>Sat, 27 Apr 2024 06:18:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926130#M364430</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-04-27T06:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Write a code on SAS on likelihood ratio</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926163#M364452</link>
      <description>&lt;P&gt;A macro call with a parameter list without the complete definition of the macro as in&lt;/P&gt;
&lt;PRE&gt;%MODEL(
     set=dormant_pca_cc,
     scoreset=MRAV.dormant_pca_cc,
     outcome=FCS_bad_9m_Jun19,
     weight=weight,
     holdout=holdout,
     oscore=CSv2_2,
     drop=1,
     user=Arjayita Ghosh,
     progname=Dormant_PCA_CC
);&lt;/PRE&gt;
&lt;P&gt;Does not really provide much for better understanding.&lt;/P&gt;
&lt;P&gt;Some where there is code that starts with&lt;/P&gt;
&lt;PRE&gt;%macro Model(&amp;lt;parameters&amp;gt;);
 
and ends with

%mend;&lt;/PRE&gt;
&lt;P&gt;that describes the macro and we could discuss that.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2024 16:37:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Write-a-code-on-SAS-on-likelihood-ratio/m-p/926163#M364452</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2024-04-27T16:37:02Z</dc:date>
    </item>
  </channel>
</rss>

