<?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 Compare repeated categorical variables (surveys) in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-repeated-categorical-variables-surveys/m-p/913029#M45315</link>
    <description>&lt;P&gt;Hi, I am trying to compare two surveys, the two surveys were answered by same bunch of people, which means one person answered two surveys at the same day. The two surveys are all 5 point-likert scale(but for another survey, it seems no one picked 5), and I want to compare them. I used Bhapkar's test because it can used to compare two repeated variables with more than two categories, and I used the below codes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc catmod data=check_fix;
response marginals;
model X*Y = _response_ / oneway;
repeated carc 2 / _response_=carc ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But it had error&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: The number of response functions per population, 7, is not a multiple of the product of the number of levels of the factors, 2. You may need the PROFILE option if the design is not a complete factorial.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So, I tried to add profile in the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc catmod data=check_fix;
response marginals;
model X*Y = _response_ / oneway;
repeated carc 2 / _response_=carc 
profile=(1 1,
         1 2,
		 1 3,
		 2 1,
		 2 2,
		 2 3,
		 3 1,
		 3 2,
		 3 3,
		 4 1,
		 4 2,
		 4 3,
		 4 4,
		 5 1,
		 5 2,
		 5 3,
		 5 4);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But it also had error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: The number of response functions, 7, must be a multiple of the number of rows in the PROFILE matrix, 17.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have no idea what's going on. Can I use this procedure or are there any other methods that I can use to analyze my data? Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jan 2024 18:40:09 GMT</pubDate>
    <dc:creator>SAS-questioner</dc:creator>
    <dc:date>2024-01-25T18:40:09Z</dc:date>
    <item>
      <title>Compare repeated categorical variables (surveys)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-repeated-categorical-variables-surveys/m-p/913029#M45315</link>
      <description>&lt;P&gt;Hi, I am trying to compare two surveys, the two surveys were answered by same bunch of people, which means one person answered two surveys at the same day. The two surveys are all 5 point-likert scale(but for another survey, it seems no one picked 5), and I want to compare them. I used Bhapkar's test because it can used to compare two repeated variables with more than two categories, and I used the below codes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc catmod data=check_fix;
response marginals;
model X*Y = _response_ / oneway;
repeated carc 2 / _response_=carc ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But it had error&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: The number of response functions per population, 7, is not a multiple of the product of the number of levels of the factors, 2. You may need the PROFILE option if the design is not a complete factorial.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So, I tried to add profile in the code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc catmod data=check_fix;
response marginals;
model X*Y = _response_ / oneway;
repeated carc 2 / _response_=carc 
profile=(1 1,
         1 2,
		 1 3,
		 2 1,
		 2 2,
		 2 3,
		 3 1,
		 3 2,
		 3 3,
		 4 1,
		 4 2,
		 4 3,
		 4 4,
		 5 1,
		 5 2,
		 5 3,
		 5 4);
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But it also had error:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ERROR: The number of response functions, 7, must be a multiple of the number of rows in the PROFILE matrix, 17.
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I have no idea what's going on. Can I use this procedure or are there any other methods that I can use to analyze my data? Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 18:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-repeated-categorical-variables-surveys/m-p/913029#M45315</guid>
      <dc:creator>SAS-questioner</dc:creator>
      <dc:date>2024-01-25T18:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compare repeated categorical variables (surveys)</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Compare-repeated-categorical-variables-surveys/m-p/913413#M45331</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your first PROC CATMOD, you might need the ZERO= option behind the forward slash on the MODEL statement.&lt;/P&gt;
&lt;DIV class="xisDoc-eDocBody"&gt;
&lt;DIV class="xisDoc-refProc"&gt;
&lt;DIV id="statug.catmod.catmodel" class="aa-section"&gt;
&lt;DIV class="aa-options"&gt;
&lt;DL class="aa-options"&gt;
&lt;DT&gt;&lt;SPAN class=" aa-term "&gt;&lt;BR /&gt;ZERO=&lt;SPAN class=" aa-argument"&gt;keyword&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;specifies whether a nonmissing cell with zero weight in the data set is treated&lt;U&gt; &lt;/U&gt;as a sampling or structural zero.&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;You can also take a PROC FREQ approach (calculating agreement measures).&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="xisDoc-paraSimpleFirst"&gt;Koen&lt;/P&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Jan 2024 15:35:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Compare-repeated-categorical-variables-surveys/m-p/913413#M45331</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-01-29T15:35:11Z</dc:date>
    </item>
  </channel>
</rss>

