<?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 V-cramer with changing value in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/V-cramer-with-changing-value/m-p/711873#M26970</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I need help to analyze the dependence of the objective function (variable: "cus12") on independent variables. I have data that has 1000 columns and the independent variables are divided into 4 groups: app_x, act_x, agr_x, ags_x. I probably need to write a loop to investigate the dependence of the variable "cus12" on variables from the given groups. I have a problem with writing such a loop and entering the appropriate "proc" in it.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="comment-copy"&gt;I don't know how to start. My idea is as follows: 1. I think I should build a macro and a loop (but all the loops I build don't work). 2. I think I should parse the dependency using "proc logistic" but and don t have macro and loops so I can't try to do anything inside. 3. I wanted to use the Chi-Square and Cramer's V test, but without a good start, I can't try anything else. I am a beginner in SAS. Any help/advice will be useful.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can I give changing variables here? If yes, How?&lt;BR /&gt;&lt;BR /&gt;proc freq data = my.credit;&lt;BR /&gt;tables ConstansVariable * variable_x / chisq;&lt;BR /&gt;output out= data cramv;&lt;BR /&gt;run;&lt;BR /&gt;I think about put this proc to loop but I don t know how...&lt;/P&gt;</description>
    <pubDate>Sat, 16 Jan 2021 19:05:49 GMT</pubDate>
    <dc:creator>Piotr900k</dc:creator>
    <dc:date>2021-01-16T19:05:49Z</dc:date>
    <item>
      <title>V-cramer with changing value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/V-cramer-with-changing-value/m-p/711873#M26970</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I need help to analyze the dependence of the objective function (variable: "cus12") on independent variables. I have data that has 1000 columns and the independent variables are divided into 4 groups: app_x, act_x, agr_x, ags_x. I probably need to write a loop to investigate the dependence of the variable "cus12" on variables from the given groups. I have a problem with writing such a loop and entering the appropriate "proc" in it.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="comment-copy"&gt;I don't know how to start. My idea is as follows: 1. I think I should build a macro and a loop (but all the loops I build don't work). 2. I think I should parse the dependency using "proc logistic" but and don t have macro and loops so I can't try to do anything inside. 3. I wanted to use the Chi-Square and Cramer's V test, but without a good start, I can't try anything else. I am a beginner in SAS. Any help/advice will be useful.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Can I give changing variables here? If yes, How?&lt;BR /&gt;&lt;BR /&gt;proc freq data = my.credit;&lt;BR /&gt;tables ConstansVariable * variable_x / chisq;&lt;BR /&gt;output out= data cramv;&lt;BR /&gt;run;&lt;BR /&gt;I think about put this proc to loop but I don t know how...&lt;/P&gt;</description>
      <pubDate>Sat, 16 Jan 2021 19:05:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/V-cramer-with-changing-value/m-p/711873#M26970</guid>
      <dc:creator>Piotr900k</dc:creator>
      <dc:date>2021-01-16T19:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: V-cramer with changing value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/V-cramer-with-changing-value/m-p/711939#M26975</link>
      <description>&lt;P&gt;1. Show us some sample data. No need for 1000 dependent variables, but please provide 8 or 12 (two or three sets of 4) so we can see the structure of the names. Do the groups of four have a common prefix or suffix?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. Cramer's V is a measure of association between nominal variables. As you indicate, it is produced by PROC FREQ when you use the CHISQ option on the TABLES statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. What do you intend to do with these 250 Cramer V statistics after you have estimated them? Presumably, you are not going to look at 250 tables on the screen.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 11:32:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/V-cramer-with-changing-value/m-p/711939#M26975</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2021-01-17T11:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: V-cramer with changing value</title>
      <link>https://communities.sas.com/t5/New-SAS-User/V-cramer-with-changing-value/m-p/711947#M26976</link>
      <description>&lt;P&gt;Now i have something like that. (I don t know if it's ok)&lt;BR /&gt;&lt;SPAN&gt;%macro crammer_num;&lt;BR /&gt;%do i=1 %to %sysfunc(countw(&amp;amp;num_name_list));&lt;BR /&gt;%let next_name=%scan(&amp;amp;num_name&lt;/SPAN&gt;&lt;EM&gt;list,&amp;amp;i);&lt;BR /&gt;data zm&lt;/EM&gt;&lt;SPAN&gt;&amp;amp;next_name;&lt;BR /&gt;set &amp;amp;zbior(keep= &amp;amp;fun &amp;amp;next&lt;/SPAN&gt;&lt;EM&gt;name);&lt;BR /&gt;run;&lt;BR /&gt;proc freq data=zm&lt;/EM&gt;&lt;SPAN&gt;&amp;amp;next_name noprint; tables &amp;amp;fun*&amp;amp;next&lt;/SPAN&gt;&lt;EM&gt;name/chisq;&lt;BR /&gt;output out=vcram&lt;/EM&gt;&lt;SPAN&gt;&amp;amp;next&lt;/SPAN&gt;&lt;EM&gt;name cramv;&lt;BR /&gt;run;&lt;BR /&gt;data vcram&lt;/EM&gt;&lt;SPAN&gt;&amp;amp;next&lt;/SPAN&gt;&lt;EM&gt;name;&lt;BR /&gt;set vcram&lt;/EM&gt;&lt;SPAN&gt;&amp;amp;next_name;&lt;BR /&gt;zmienna ="&amp;amp;next&lt;/SPAN&gt;&lt;EM&gt;name";&lt;BR /&gt;vcram = abs(cramv);&lt;BR /&gt;run;&lt;BR /&gt;data vcram;&lt;BR /&gt;set vcram vcram&lt;/EM&gt;&lt;SPAN&gt;&amp;amp;next_name;&lt;BR /&gt;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend crammer_num;&lt;BR /&gt;&lt;BR /&gt;%crammer_num;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;Part of data in file.&lt;/P&gt;</description>
      <pubDate>Sun, 17 Jan 2021 12:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/V-cramer-with-changing-value/m-p/711947#M26976</guid>
      <dc:creator>Piotr900k</dc:creator>
      <dc:date>2021-01-17T12:38:15Z</dc:date>
    </item>
  </channel>
</rss>

