<?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: PROC SURVEYFREQ - Tests for trend in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-Tests-for-trend/m-p/851388#M42142</link>
    <description>&lt;P&gt;&amp;lt;&lt;SPAN&gt;The CHISQ option, which performs a Pearson Chi-Square test to detect associations.&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;My understanding is that this option is for differences between categorical variables, not trends. Am I wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;&lt;SPAN&gt;The SPEARMAN option, which performs Spearman rank correlation to test for monotonic trends.&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Would this option be used to assess for a trend in ordinal categories of a dependent variable and an independent variable that has more than two ordered categories.?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I was trying to determine a trend in quantiles of HDL cholesterol, for example, over time&amp;nbsp;(i.e., years), what would be the proper SURVEY syntax?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Something like this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SURVEY LOGISTIC DATA=data_set;
TABLES hdl_quantiles*year&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt; / &lt;U&gt;&lt;STRONG&gt;SPEARMAN;&lt;/STRONG&gt;&lt;/U&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;The COCHRANQ option, which performs Cochran-Armitage trend test to detect linear trends.&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My understanding is that this option is used to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;assess whether a trend is present between a &lt;STRONG&gt;binary (two levels, 0/1)&lt;/STRONG&gt; dependent variable and an independent variable that has been categorized into more than two ordered categories.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the non-SURVEY syntax were this (below):&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="page" title="Page 8"&gt;
&lt;DIV class="layoutArea"&gt;
&lt;DIV class="column"&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=chol9c;
table female*hdl_cat/&lt;U&gt;&lt;STRONG&gt;trend&lt;/STRONG&gt;&lt;/U&gt; noprint;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;What would the PROCSURVEY syntax look like?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, what SURVEY option&amp;nbsp;should be used if the dependent variable is multinomial and not binary or ordinal&amp;nbsp;(e.g., Race)? My understanding is that the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Cochran-Mantel-Haenszel test would&amp;nbsp;serve this purpose in a non-SURVEY procedure?&amp;nbsp;The&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;cmh option is not available in PROC SURVEYFREQ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ data=dataset;
TABLES race*year/&lt;U&gt;&lt;STRONG&gt;cmh&lt;/STRONG&gt;&lt;/U&gt; noprint;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Wed, 28 Dec 2022 18:31:14 GMT</pubDate>
    <dc:creator>_maldini_</dc:creator>
    <dc:date>2022-12-28T18:31:14Z</dc:date>
    <item>
      <title>PROC SURVEYFREQ - Tests for trend</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-Tests-for-trend/m-p/845446#M41864</link>
      <description>&lt;P&gt;What options can be used to test of trend(s) in PROC SURVEYFREQ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.lexjansen.com/wuss/2019/175_Final_Paper_PDF.pdf" target="_self"&gt;This LexJansen paper&lt;/A&gt; is great, but none of these options (Jonckheere-Terpstra, Cochran- Armitage and Cochran-Mantel-Haenszel tests) appear to be available w/&amp;nbsp;PROC SURVEYFREQ.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 11:25:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-Tests-for-trend/m-p/845446#M41864</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2022-11-21T11:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYFREQ - Tests for trend</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-Tests-for-trend/m-p/848901#M42045</link>
      <description>&lt;P&gt;The PROC SURVEYFREQ procedure supports several options to test for trends in the data:&lt;/P&gt;&lt;P&gt;1. The CHISQ option, which performs a Pearson Chi-Square test to detect associations.&lt;/P&gt;&lt;P&gt;2. The SPEARMAN option, which performs Spearman rank correlation to test for monotonic trends.&lt;/P&gt;&lt;P&gt;3. The COCHRANQ option, which performs Cochran-Armitage trend test to detect linear trends.&lt;/P&gt;&lt;P&gt;4. The TTEST option, which performs a two-sample Student's t-test to test if means differ along with the specified ordering of the values.&lt;/P&gt;&lt;P&gt;5. The Wilcoxon option, which performs the Wilcoxon rank sum test to determine whether two trends diverge or are similar.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 10 Dec 2022 14:48:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-Tests-for-trend/m-p/848901#M42045</guid>
      <dc:creator>ger15xxhcker</dc:creator>
      <dc:date>2022-12-10T14:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYFREQ - Tests for trend</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-Tests-for-trend/m-p/851388#M42142</link>
      <description>&lt;P&gt;&amp;lt;&lt;SPAN&gt;The CHISQ option, which performs a Pearson Chi-Square test to detect associations.&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;My understanding is that this option is for differences between categorical variables, not trends. Am I wrong?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;lt;&lt;SPAN&gt;The SPEARMAN option, which performs Spearman rank correlation to test for monotonic trends.&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Would this option be used to assess for a trend in ordinal categories of a dependent variable and an independent variable that has more than two ordered categories.?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I was trying to determine a trend in quantiles of HDL cholesterol, for example, over time&amp;nbsp;(i.e., years), what would be the proper SURVEY syntax?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Something like this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SURVEY LOGISTIC DATA=data_set;
TABLES hdl_quantiles*year&lt;/CODE&gt;&lt;CODE class=" language-sas"&gt; / &lt;U&gt;&lt;STRONG&gt;SPEARMAN;&lt;/STRONG&gt;&lt;/U&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;The COCHRANQ option, which performs Cochran-Armitage trend test to detect linear trends.&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My understanding is that this option is used to&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;assess whether a trend is present between a &lt;STRONG&gt;binary (two levels, 0/1)&lt;/STRONG&gt; dependent variable and an independent variable that has been categorized into more than two ordered categories.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the non-SURVEY syntax were this (below):&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="page" title="Page 8"&gt;
&lt;DIV class="layoutArea"&gt;
&lt;DIV class="column"&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc freq data=chol9c;
table female*hdl_cat/&lt;U&gt;&lt;STRONG&gt;trend&lt;/STRONG&gt;&lt;/U&gt; noprint;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;SPAN&gt;What would the PROCSURVEY syntax look like?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also, what SURVEY option&amp;nbsp;should be used if the dependent variable is multinomial and not binary or ordinal&amp;nbsp;(e.g., Race)? My understanding is that the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Cochran-Mantel-Haenszel test would&amp;nbsp;serve this purpose in a non-SURVEY procedure?&amp;nbsp;The&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;cmh option is not available in PROC SURVEYFREQ...&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FREQ data=dataset;
TABLES race*year/&lt;U&gt;&lt;STRONG&gt;cmh&lt;/STRONG&gt;&lt;/U&gt; noprint;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 18:31:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-Tests-for-trend/m-p/851388#M42142</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2022-12-28T18:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: PROC SURVEYFREQ - Tests for trend</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-Tests-for-trend/m-p/851393#M42143</link>
      <description>&lt;P&gt;What would be the SURVEY option for the "&lt;SPAN&gt;Jonckheere-Terpstra Test”, used to assess a trend between&lt;/SPAN&gt;&lt;SPAN&gt;&lt;U&gt;&lt;STRONG&gt; a non-normally distributed dependent variable&lt;/STRONG&gt;&lt;/U&gt; and an ordered independent variable.?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 18:49:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/PROC-SURVEYFREQ-Tests-for-trend/m-p/851393#M42143</guid>
      <dc:creator>_maldini_</dc:creator>
      <dc:date>2022-12-28T18:49:55Z</dc:date>
    </item>
  </channel>
</rss>

