<?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: Chi-squared test for trend using nominal, weighted data in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397237#M20714</link>
    <description>&lt;P&gt;Consider surveymeans with your categorical variable sich as intention as a Domain and your ordinal as a VAR variable, means and confidence limits should get you started.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2017 19:24:06 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2017-09-19T19:24:06Z</dc:date>
    <item>
      <title>Chi-squared test for trend using nominal, weighted data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/396913#M20696</link>
      <description>&lt;P&gt;I find several examples of how to code for chi-squared test for trend using nominal/ordinal data for data that is not weighted. However, the data I use are weighted and using the syntax "trend" after the tables statement produces an error with only the following options. Anyone aware of how to perform the same test using "proc surveyfreq"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;711 proc surveyfreq data=y15;&lt;/P&gt;&lt;P&gt;712 table bmi*q69 bmi*intentions intentions*exercise/chisq row cl trend;&lt;/P&gt;&lt;P&gt;-----&lt;/P&gt;&lt;P&gt;22&lt;/P&gt;&lt;P&gt;202&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: ;, (, AGREE, ALPHA, CELLCHI2, CHISQ,&lt;/P&gt;&lt;P&gt;CHISQ1, CL, CLWT, COL, COLUMN, COV, COVP, CV, CVWT, DDF, DEFF, DEFFCOL, DEFFROW,&lt;/P&gt;&lt;P&gt;DEVIATION, DF, EXPECTED, KAPPA, LRCHISQ, LRCHISQ1, NOCELLPERCENT, NOFREQ,&lt;/P&gt;&lt;P&gt;NOPERCENT, NOPRINT, NOSPARSE, NOSTD, NOTOTAL, NOWT, ODDSRATIO, OR, PEARSONRES,&lt;/P&gt;&lt;P&gt;PEARSONRESID, PLOTS, RELRISK, RISK, RISK1, RISK2, RISKDIFF, RISKDIFF1, RISKDIFF2,&lt;/P&gt;&lt;P&gt;ROW, RSCHISQ, RSCHISQ1, TABLE, TESTP, VAR, VARWT, WALD, WCHISQ, WLLCHISQ, WT,&lt;/P&gt;&lt;P&gt;WTFREQ, WTKAP, WTKAPPA.&lt;/P&gt;&lt;P&gt;ERROR 202-322: The option or parameter is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;713 weight weight;&lt;/P&gt;&lt;P&gt;714 cluster psu;&lt;/P&gt;&lt;P&gt;715 strata stratum;&lt;/P&gt;&lt;P&gt;716 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 18:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/396913#M20696</guid>
      <dc:creator>thadb</dc:creator>
      <dc:date>2017-09-18T18:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-squared test for trend using nominal, weighted data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/396914#M20697</link>
      <description>&lt;P&gt;I don't believe that TREND is a valid Tables option in Surveyfreq.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 19:00:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/396914#M20697</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-18T19:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-squared test for trend using nominal, weighted data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397166#M20707</link>
      <description>&lt;P&gt;Very true, that's the problem.&amp;nbsp; I am using one nominal variable and one ordinal variable with three levels, not sure else how to test it.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 15:29:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397166#M20707</guid>
      <dc:creator>thadb</dc:creator>
      <dc:date>2017-09-19T15:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-squared test for trend using nominal, weighted data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397195#M20712</link>
      <description>&lt;P&gt;You might describe your data a bit such as which variables are nominal and which ordinal, how many levels of each and what kind of "trend" you are looking to identify.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may want to think more of "association" if your number of levels for each is small.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 16:56:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397195#M20712</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-19T16:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-squared test for trend using nominal, weighted data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397199#M20713</link>
      <description>&lt;P&gt;One variable is "intention" 1. to gain weight, 2. to lose weight, and 3. do nothing.&amp;nbsp; The second variable is how many days of the week they engage in physical activity 0, 1, 2, 3, 4, 5, 6, 7.&amp;nbsp; Basically looking to see if there is an increase days of activity when moving from one intention to another.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 17:03:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397199#M20713</guid>
      <dc:creator>thadb</dc:creator>
      <dc:date>2017-09-19T17:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-squared test for trend using nominal, weighted data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397237#M20714</link>
      <description>&lt;P&gt;Consider surveymeans with your categorical variable sich as intention as a Domain and your ordinal as a VAR variable, means and confidence limits should get you started.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2017 19:24:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397237#M20714</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-19T19:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-squared test for trend using nominal, weighted data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397437#M20721</link>
      <description>&lt;P&gt;Thank you.&amp;nbsp; I ran proc surveymeans and the mean value for each level was the same as the row percent for each level when I ran proc surveyfreq, which I guess is no surprise.&amp;nbsp; My only question is how to interpret the mean values as a test for trend?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks for your input&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 13:28:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397437#M20721</guid>
      <dc:creator>thadb</dc:creator>
      <dc:date>2017-09-20T13:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-squared test for trend using nominal, weighted data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397485#M20725</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/165888"&gt;@thadb&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Thank you.&amp;nbsp; I ran proc surveymeans and the mean value for each level was the same as the row percent for each level when I ran proc surveyfreq, which I guess is no surprise.&amp;nbsp; My only question is how to interpret the mean values as a test for trend?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks for your input&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Not a trend. But if the mean for physical activity days&amp;nbsp;in one domain such as "gain weight" is smaller than for "lose weight" you have an indication. In lieu of a formal means test if the confidence limits don't overlap you have a very conservative test that the difference is statistically significant.&lt;/P&gt;
&lt;P&gt;I am also not sure that 1. to gain weight, 2. to lose weight, and 3. do nothing is actually even ordinal so "trend" across these wouldn't make sense (at least to me as the implied coding goes pehaps if the coding were 3. to gain weight,&amp;nbsp;1 to lose weight, and 2. do nothing).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One&amp;nbsp;minor problem I see with your specific domain "intention" is that both gain and lose weight could have the same&amp;nbsp;&amp;nbsp;change in days of activity but the type of activity could vary based on the intent. Gain weight may be lifting weights with heavy weights and lower reps while lose weight may be more aerobic exercise.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 15:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397485#M20725</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-20T15:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Chi-squared test for trend using nominal, weighted data</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397495#M20728</link>
      <description>&lt;P&gt;Agreed, thank you again for your input.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2017 15:44:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Chi-squared-test-for-trend-using-nominal-weighted-data/m-p/397495#M20728</guid>
      <dc:creator>thadb</dc:creator>
      <dc:date>2017-09-20T15:44:17Z</dc:date>
    </item>
  </channel>
</rss>

