<?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 PROC MIXED ESTIMATE FOR INTERACTION (CONTINUOUS AND CATEGORICAL VARIABLES) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-ESTIMATE-FOR-INTERACTION-CONTINUOUS-AND-CATEGORICAL/m-p/913702#M83288</link>
    <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;I have a data set from cows (n = 66) sampled in two different days (7 and 14) and they were in two different treatments (High P4 and Low P4). I analyzed the samples for gene expression. I've been trying to run a mixed linear regression model using PROC MIXED to evaluate the effect of treatment (categorical), day (categorical), duration (continuous) as well as its possible interactions on the expression of a gene (&lt;SPAN&gt;ACSL3). I would like to have the estimates for the effect of duration (fixed effect) on the expression of&amp;nbsp;ACSL3 (dependent variable) per day as well as per treatment (both fixed effects). I've done before using LSMEANS to estimate the effect of treatment*day because they are categorical variables but I can't use LSMEANS for continuous variables (case of the variable duration). I've tried the estimate statement as well as contrasts and macros but I can't get the code right - I don't think I know stats in a high level to understand how to code for those. I am wondering is someone could share any info that could help me? Please see below my current code, thank you so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC MIXED DATA=endometrium_cows_all;&lt;BR /&gt;where repeated = 0;&lt;BR /&gt;CLASS treatment cow_id day ;&lt;BR /&gt;MODEL ACSL3= treatment | duration | day&amp;nbsp; / htype=3 residual;&lt;BR /&gt;REPEATED/ type=cs SUB=cow_id;&lt;BR /&gt;LSMEANS treatment day treatment*day/ DIFF;&lt;BR /&gt;estimate 'estimate for duration' duration 1;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jan 2024 00:22:37 GMT</pubDate>
    <dc:creator>JessicaM</dc:creator>
    <dc:date>2024-01-31T00:22:37Z</dc:date>
    <item>
      <title>PROC MIXED ESTIMATE FOR INTERACTION (CONTINUOUS AND CATEGORICAL VARIABLES)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-ESTIMATE-FOR-INTERACTION-CONTINUOUS-AND-CATEGORICAL/m-p/913702#M83288</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;I have a data set from cows (n = 66) sampled in two different days (7 and 14) and they were in two different treatments (High P4 and Low P4). I analyzed the samples for gene expression. I've been trying to run a mixed linear regression model using PROC MIXED to evaluate the effect of treatment (categorical), day (categorical), duration (continuous) as well as its possible interactions on the expression of a gene (&lt;SPAN&gt;ACSL3). I would like to have the estimates for the effect of duration (fixed effect) on the expression of&amp;nbsp;ACSL3 (dependent variable) per day as well as per treatment (both fixed effects). I've done before using LSMEANS to estimate the effect of treatment*day because they are categorical variables but I can't use LSMEANS for continuous variables (case of the variable duration). I've tried the estimate statement as well as contrasts and macros but I can't get the code right - I don't think I know stats in a high level to understand how to code for those. I am wondering is someone could share any info that could help me? Please see below my current code, thank you so much!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PROC MIXED DATA=endometrium_cows_all;&lt;BR /&gt;where repeated = 0;&lt;BR /&gt;CLASS treatment cow_id day ;&lt;BR /&gt;MODEL ACSL3= treatment | duration | day&amp;nbsp; / htype=3 residual;&lt;BR /&gt;REPEATED/ type=cs SUB=cow_id;&lt;BR /&gt;LSMEANS treatment day treatment*day/ DIFF;&lt;BR /&gt;estimate 'estimate for duration' duration 1;&lt;BR /&gt;run;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2024 00:22:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/PROC-MIXED-ESTIMATE-FOR-INTERACTION-CONTINUOUS-AND-CATEGORICAL/m-p/913702#M83288</guid>
      <dc:creator>JessicaM</dc:creator>
      <dc:date>2024-01-31T00:22:37Z</dc:date>
    </item>
  </channel>
</rss>

