<?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 How to get P for trend in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-P-for-trend/m-p/667021#M31806</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveylogistic data =newnsch3a;
class   sex (ref = '0') race(Ref = '0') FPL (ref= '0')   smokes(Ref= '0') adulteducate (ref='0')
family (ref='0') sleep (ref='0') comp (ref='0') age3_1718 (ref='2')  MOLD (ref='2')
exercise (ref='0') pest (ref='0')/param=glm ;
strata Fipsst;
cluster hhid;
weight fwc;
Model ast (event ='1') = age3_1718 sex race FPL smokes  comp adulteducate 
MOLD exercise pest family sleep smokes*comp;
lsmeans smokes*comp/oddsratio cl diff;
slice smokes*comp/ sliceby=comp diff=control('0' '0') oddsratio cl; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hello statisticians,&lt;/P&gt;&lt;P&gt;I am interested in finding the P for trend for the Odd Ratios (OR) that i got from the interaction between smoking and a composite variable that i created. Composite is a variable that has 4 level (0,1,2,3) while smokes have 2 levels (0,1). The interaction between composite and smokes was significant. So i have 4 ORs. My problem is that i would like to get a P for trend on these 4 ORs. Is there any other syntax that i should add to my code (above) to enable me get a P-value for the trend?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 05 Jul 2020 17:33:43 GMT</pubDate>
    <dc:creator>ChuksManuel</dc:creator>
    <dc:date>2020-07-05T17:33:43Z</dc:date>
    <item>
      <title>How to get P for trend</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-P-for-trend/m-p/667021#M31806</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc surveylogistic data =newnsch3a;
class   sex (ref = '0') race(Ref = '0') FPL (ref= '0')   smokes(Ref= '0') adulteducate (ref='0')
family (ref='0') sleep (ref='0') comp (ref='0') age3_1718 (ref='2')  MOLD (ref='2')
exercise (ref='0') pest (ref='0')/param=glm ;
strata Fipsst;
cluster hhid;
weight fwc;
Model ast (event ='1') = age3_1718 sex race FPL smokes  comp adulteducate 
MOLD exercise pest family sleep smokes*comp;
lsmeans smokes*comp/oddsratio cl diff;
slice smokes*comp/ sliceby=comp diff=control('0' '0') oddsratio cl; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hello statisticians,&lt;/P&gt;&lt;P&gt;I am interested in finding the P for trend for the Odd Ratios (OR) that i got from the interaction between smoking and a composite variable that i created. Composite is a variable that has 4 level (0,1,2,3) while smokes have 2 levels (0,1). The interaction between composite and smokes was significant. So i have 4 ORs. My problem is that i would like to get a P for trend on these 4 ORs. Is there any other syntax that i should add to my code (above) to enable me get a P-value for the trend?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Jul 2020 17:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-P-for-trend/m-p/667021#M31806</guid>
      <dc:creator>ChuksManuel</dc:creator>
      <dc:date>2020-07-05T17:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get P for trend</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-P-for-trend/m-p/667247#M31823</link>
      <description>&lt;P&gt;You can get a trend on the log-odds values working from the LSMEANS statement.&amp;nbsp; I think the lsmeans will have the log odds for the 4 levels of comp at smokes=0, followed by the log odds for the four levels of comp at smokes=1.&amp;nbsp; If that is the case, the following LSMESTIMATE statement will give the tests in the LOG ODDS space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;lsmestimate smokes*comp 'Trend due to comp for smokes=0' -3 -1 1 3 0 0 0 0,
                        'Trend due to comp for smokes=1' 0 0 0 0 -3 -1 1 3,&lt;BR /&gt;                        'Difference in trends'           -3 -1 1 3 3 1 -1 -3;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Of course if the ordering of the smokes*comp lsmeans is different than what I supposed, these will have to be adjusted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SteveDenham&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jul 2020 17:47:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/How-to-get-P-for-trend/m-p/667247#M31823</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2020-07-06T17:47:31Z</dc:date>
    </item>
  </channel>
</rss>

