<?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 Restrict statement equivalent in PROC MIXED? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Restrict-statement-equivalent-in-PROC-MIXED/m-p/833177#M329353</link>
    <description>&lt;P&gt;I am writing code to run a repeated measures linear mixed model.&amp;nbsp; One of the linear predictors needs a fixed slope set to 1. The other predictor variable and the autocorrelation coefficient are estimated by the model. I have done something similar in PROC REG where there is a RESTRICT statement.&amp;nbsp; Is there an equivalent to RESTRICT in PROC MIXED where I can restrict the slope to a constant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS OUTPUT FITSTATISTICS=FIT_RICKER2;&lt;BR /&gt;ODS OUTPUT CovParms=RICKER_PARMS2;&lt;BR /&gt;PROC MIXED METHOD=REML ALPHA=.05 NOITPRINT NOINFO DATA=FISH_DENSITY;&lt;BR /&gt;BY REGION SITE SPECIES;&lt;BR /&gt;CLASS TIME;&lt;BR /&gt;MODEL LOG_Nt=LOG_Nt_Minus1 Nt_Minus1/ s outp=pred_RICKER;&lt;BR /&gt;RANDOM TIME;&lt;BR /&gt;REPEATED / TYPE=AR(1) SUBJECT=INTERCEPT;&lt;BR /&gt;ESTIMATE 'INTERCEPT' INTERCEPT 1;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Sep 2022 15:55:38 GMT</pubDate>
    <dc:creator>jvgatto89</dc:creator>
    <dc:date>2022-09-13T15:55:38Z</dc:date>
    <item>
      <title>Restrict statement equivalent in PROC MIXED?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restrict-statement-equivalent-in-PROC-MIXED/m-p/833177#M329353</link>
      <description>&lt;P&gt;I am writing code to run a repeated measures linear mixed model.&amp;nbsp; One of the linear predictors needs a fixed slope set to 1. The other predictor variable and the autocorrelation coefficient are estimated by the model. I have done something similar in PROC REG where there is a RESTRICT statement.&amp;nbsp; Is there an equivalent to RESTRICT in PROC MIXED where I can restrict the slope to a constant?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS OUTPUT FITSTATISTICS=FIT_RICKER2;&lt;BR /&gt;ODS OUTPUT CovParms=RICKER_PARMS2;&lt;BR /&gt;PROC MIXED METHOD=REML ALPHA=.05 NOITPRINT NOINFO DATA=FISH_DENSITY;&lt;BR /&gt;BY REGION SITE SPECIES;&lt;BR /&gt;CLASS TIME;&lt;BR /&gt;MODEL LOG_Nt=LOG_Nt_Minus1 Nt_Minus1/ s outp=pred_RICKER;&lt;BR /&gt;RANDOM TIME;&lt;BR /&gt;REPEATED / TYPE=AR(1) SUBJECT=INTERCEPT;&lt;BR /&gt;ESTIMATE 'INTERCEPT' INTERCEPT 1;&lt;BR /&gt;RUN;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 15:55:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restrict-statement-equivalent-in-PROC-MIXED/m-p/833177#M329353</guid>
      <dc:creator>jvgatto89</dc:creator>
      <dc:date>2022-09-13T15:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict statement equivalent in PROC MIXED?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restrict-statement-equivalent-in-PROC-MIXED/m-p/833179#M329355</link>
      <description>&lt;P&gt;If you have to restrict the slope on a variable (let's just arbitrarily pick x2) to exactly 1, then you could write the fixed portion of the model&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y = x0 + beta1*x1 + 1*x2 + beta3*x3 + ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;which is equal to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;y–x2 = x0 + beta1*x1 + beta3*x3 + ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so it would seem that you could fit a model to y–x2&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 16:28:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restrict-statement-equivalent-in-PROC-MIXED/m-p/833179#M329355</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-13T16:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict statement equivalent in PROC MIXED?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restrict-statement-equivalent-in-PROC-MIXED/m-p/833204#M329362</link>
      <description>&lt;P&gt;I cannot change the response variable.&amp;nbsp; I am comparing it to other models and the response must be consistent across all model types.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 18:25:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restrict-statement-equivalent-in-PROC-MIXED/m-p/833204#M329362</guid>
      <dc:creator>jvgatto89</dc:creator>
      <dc:date>2022-09-13T18:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Restrict statement equivalent in PROC MIXED?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Restrict-statement-equivalent-in-PROC-MIXED/m-p/833205#M329363</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/433732"&gt;@jvgatto89&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I cannot change the response variable.&amp;nbsp; I am comparing it to other models and the response must be consistent across all model types.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You can fit the model, and then "un-transform" the response variable, so you can compare it to other models.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2022 18:30:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Restrict-statement-equivalent-in-PROC-MIXED/m-p/833205#M329363</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2022-09-13T18:30:16Z</dc:date>
    </item>
  </channel>
</rss>

