<?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 Glm, Slice command with one class variable and three continuous variables  - contrast effec in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/946067#M370552</link>
    <description>&lt;P&gt;That was supposed to be , because 'dog' is reference level of class variable.&lt;/P&gt;
&lt;P&gt;You could see X*DRUG G is also zero in the following picture(the parameter of reference level is supposed to be zero) .&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1727923861652.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100846iF965453BC526F5A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1727923861652.png" alt="Ksharp_0-1727923861652.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here "&lt;SPAN&gt;&amp;nbsp;some value for cat&amp;nbsp;" represent the difference of slope between CAT and DOG,check yellow part in picture.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;X(or alpha) represent then solpe of DOG(reference level), check blue part in picture.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"get the results for both cat and dog? "&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What do you mean by "results" ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1) If you refer to mean of Y, "Intercept" is the mean of Y for DOG when alpha=0 .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"CAT" is the&amp;nbsp;difference in the mean of Y between CAT and DOG when alpha=0, then the mean of Y for CAT=CAT+Intercept.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2)If you refer to slope of Y, "Alpha" is the slope for DOG.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;alpha*cat is the&amp;nbsp;difference in the slopes of the CAT and DOG, then then slope for CAT=alpha*cat +alpha .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Above all these you can find at the link I posted, just read it carefully and understand it .&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2024 03:20:13 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2024-10-03T03:20:13Z</dc:date>
    <item>
      <title>Proc Glm, Slice command with one class variable and three continuous variables  - contrast effect</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/901853#M356391</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to test the variable "beta", "gamma", and "alpha" (these are continuous variables) in two different level of "pet_type". Pet_type is a class variable with two values: "dog" or "cat". Ultimately,&amp;nbsp;I would like to have a graph something like this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Lena_PA_0-1699341128993.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/89478iEEAB388403F5EA66/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Lena_PA_0-1699341128993.png" alt="Lena_PA_0-1699341128993.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;my code is&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc glm data = have ;&lt;BR /&gt;class pet_type ;&lt;BR /&gt;model logsale = beta gamma alpha pet_type pet_type*beta pet_type*gamma pet_type*alpha/ss3;&lt;BR /&gt;lsmeans pet_type*gamma/ slice = pet_type;&lt;BR /&gt;lsmeans pet_type*beta/ slice = pet_type;&lt;BR /&gt;lsmeans pet_type*alpha/ slice = pet_type;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I've got an error message that "only CLASS variables allowed in this effect." Please help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2023 07:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/901853#M356391</guid>
      <dc:creator>Lena_PA</dc:creator>
      <dc:date>2023-11-07T07:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glm, Slice command with one class variable and three continuous variables  - contrast effec</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/901854#M356392</link>
      <description>Since LSMEANS compare the mean of Y in two or more groups within CLASS variable, like ANOVA . You should use CATEGORY variable in it.&lt;BR /&gt;lsmeans pet_type*gamma/ slice = pet_type;&lt;BR /&gt;--&amp;gt;&lt;BR /&gt;lsmeans pet_type/ diff ;</description>
      <pubDate>Tue, 07 Nov 2023 07:34:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/901854#M356392</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-11-07T07:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glm, Slice command with one class variable and three continuous variables  - contrast effec</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/902619#M356714</link>
      <description>&lt;P&gt;Thank you for letting me know! Pet_type is a category variable but alpha, beta, and gamma are not.. so what do you suggest?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2023 03:51:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/902619#M356714</guid>
      <dc:creator>Lena_PA</dc:creator>
      <dc:date>2023-11-11T03:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glm, Slice command with one class variable and three continuous variables  - contrast effec</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/902632#M356716</link>
      <description>If You want to check the difference of ALPHA within a category variable,you should check this :&lt;BR /&gt; &lt;BR /&gt;&lt;A href="https://support.sas.com/kb/38/384.html" target="_blank"&gt;https://support.sas.com/kb/38/384.html&lt;/A&gt;</description>
      <pubDate>Sat, 11 Nov 2023 09:46:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/902632#M356716</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-11-11T09:46:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glm, Slice command with one class variable and three continuous variables  - contrast effec</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/946059#M370551</link>
      <description>&lt;P&gt;thank you! I reviewed the document and used the last one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pet_type is a class variable (either "cat" or "dog")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;proc glm data=pet;
      ods select ParameterEstimates;
      class pet_type;
      model Y = pet_type alpha pet_type*alpha / solution;
      run;&lt;/PRE&gt;&lt;P&gt;The results show some value for cat but only zero and "."&amp;nbsp; for dog. How can I get the results for both cat and dog?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 02:04:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/946059#M370551</guid>
      <dc:creator>Lena_PA</dc:creator>
      <dc:date>2024-10-03T02:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glm, Slice command with one class variable and three continuous variables  - contrast effec</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/946067#M370552</link>
      <description>&lt;P&gt;That was supposed to be , because 'dog' is reference level of class variable.&lt;/P&gt;
&lt;P&gt;You could see X*DRUG G is also zero in the following picture(the parameter of reference level is supposed to be zero) .&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1727923861652.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/100846iF965453BC526F5A7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1727923861652.png" alt="Ksharp_0-1727923861652.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here "&lt;SPAN&gt;&amp;nbsp;some value for cat&amp;nbsp;" represent the difference of slope between CAT and DOG,check yellow part in picture.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;X(or alpha) represent then solpe of DOG(reference level), check blue part in picture.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"get the results for both cat and dog? "&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;What do you mean by "results" ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1) If you refer to mean of Y, "Intercept" is the mean of Y for DOG when alpha=0 .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"CAT" is the&amp;nbsp;difference in the mean of Y between CAT and DOG when alpha=0, then the mean of Y for CAT=CAT+Intercept.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2)If you refer to slope of Y, "Alpha" is the slope for DOG.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;alpha*cat is the&amp;nbsp;difference in the slopes of the CAT and DOG, then then slope for CAT=alpha*cat +alpha .&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Above all these you can find at the link I posted, just read it carefully and understand it .&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 03:20:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/946067#M370552</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2024-10-03T03:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Glm, Slice command with one class variable and three continuous variables  - contrast effec</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/946192#M370576</link>
      <description>&lt;P&gt;thank you so much. I ended up manually calculated intercepts and slopes and draw lines in excel not the most sophisticated way but still worked&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 19:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Glm-Slice-command-with-one-class-variable-and-three/m-p/946192#M370576</guid>
      <dc:creator>Lena_PA</dc:creator>
      <dc:date>2024-10-03T19:37:28Z</dc:date>
    </item>
  </channel>
</rss>

