<?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 do exact analysis of s by r table with nominal covariate and ordinal response? in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263148#M13893</link>
    <description>&lt;P&gt;For an overview of the various exact tests in PROC FREQ, see &lt;A href="http://blogs.sas.com/content/iml/2015/10/26/exact-tests-proc-freq.html" target="_self"&gt;"Exact tests in PROC FREQ: What, when, and how."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PROC FREQ doc says "The Jonckheere-Terpstra test is appropriate for a two-way table in which an ordinal column variable represents the response."&lt;/P&gt;</description>
    <pubDate>Tue, 12 Apr 2016 11:56:58 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2016-04-12T11:56:58Z</dc:date>
    <item>
      <title>How to do exact analysis of s by r table with nominal covariate and ordinal response?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263036#M13880</link>
      <description>&lt;P&gt;I use SAS9.4.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to do a exact analysis of s by r table where&lt;/P&gt;&lt;P&gt;the covariate is nominal and the response is ordinal.&lt;/P&gt;&lt;P&gt;Also this is an analysis of categorical data, so we observe the frequency of each covariate*response level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the data should look something like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data example;&lt;/P&gt;&lt;P&gt;input covariate $ response $ count&amp;nbsp;@@;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;cov1 bad 3 cov1 moderate 4 cov1 good 0&lt;/P&gt;&lt;P&gt;cov2 bad 4 cov2 moderate 1 cov2 good 2&lt;/P&gt;&lt;P&gt;cov3 bad 5 cov3 moderate 2 cov3 good 1&amp;nbsp;&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The sample size is quite small, so I would like to use exact analysis.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I suppose I can do something like &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;froc freq order=data;&lt;/P&gt;&lt;P&gt;weight count;&lt;/P&gt;&lt;P&gt;tables covariatename*outcomename / exact&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, this should give just a general association, not a "mean score differ" type of result.&lt;/P&gt;&lt;P&gt;What kind of option can I use to do this exact analysis?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 21:23:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263036#M13880</guid>
      <dc:creator>IsaacNakamura</dc:creator>
      <dc:date>2016-04-11T21:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to do exact analysis of s by r table with nominal covariate and ordinal response?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263039#M13881</link>
      <description>&lt;P&gt;To do anything with "difference" I think you need your responses to be numeric. I think you might investigate Proc Npar1way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format library=work;
   invalue response
   'bad' = 1
   'moderate'=2
   'good' =3;
run;
data example;
   informat response response.;
   input covariate $ response  count @@;
datalines;
cov1 bad 3 cov1 moderate 4 cov1 good 0
cov2 bad 4 cov2 moderate 1 cov2 good 2
cov3 bad 5 cov3 moderate 2 cov3 good 1 
;
run;

proc npar1Way data=example;
   class covariate;
   freq count;
   var response;
   exact Wilcoxon;
   
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Apr 2016 21:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263039#M13881</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-11T21:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to do exact analysis of s by r table with nominal covariate and ordinal response?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263062#M13882</link>
      <description>&lt;P&gt;Friedman’s Chi-Square Test can get&amp;nbsp;&lt;SPAN&gt;"mean score differ" , Check example in Documentation.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;proc freq data=Hypnosis;&lt;BR /&gt;tables Emotion * SkinResponse /cmh2 scores=rank noprint;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;exact ..... ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;OR You could try PROC CATMOD ,which is the best tool to build a Log-Linear Model for Contingency Table.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 01:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263062#M13882</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-12T01:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to do exact analysis of s by r table with nominal covariate and ordinal response?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263064#M13883</link>
      <description>Thank you! I will try.</description>
      <pubDate>Tue, 12 Apr 2016 01:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263064#M13883</guid>
      <dc:creator>IsaacNakamura</dc:creator>
      <dc:date>2016-04-12T01:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to do exact analysis of s by r table with nominal covariate and ordinal response?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263065#M13884</link>
      <description>Thank you. I will try!</description>
      <pubDate>Tue, 12 Apr 2016 01:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263065#M13884</guid>
      <dc:creator>IsaacNakamura</dc:creator>
      <dc:date>2016-04-12T01:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to do exact analysis of s by r table with nominal covariate and ordinal response?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263148#M13893</link>
      <description>&lt;P&gt;For an overview of the various exact tests in PROC FREQ, see &lt;A href="http://blogs.sas.com/content/iml/2015/10/26/exact-tests-proc-freq.html" target="_self"&gt;"Exact tests in PROC FREQ: What, when, and how."&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The PROC FREQ doc says "The Jonckheere-Terpstra test is appropriate for a two-way table in which an ordinal column variable represents the response."&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 11:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263148#M13893</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2016-04-12T11:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to do exact analysis of s by r table with nominal covariate and ordinal response?</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263973#M13920</link>
      <description>Thank you! I will try.</description>
      <pubDate>Thu, 14 Apr 2016 18:54:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-do-exact-analysis-of-s-by-r-table-with-nominal-covariate/m-p/263973#M13920</guid>
      <dc:creator>IsaacNakamura</dc:creator>
      <dc:date>2016-04-14T18:54:57Z</dc:date>
    </item>
  </channel>
</rss>

