<?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: Regression analysis in Statistical Procedures</title>
    <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91945#M4512</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will require some luck to get a c value greater than 0 with those programs. It would be safer to add the restriction a + b &amp;lt; 1 to the proc model statements. For nlmixed you will have to rely on luck or more complicated programming &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;. I think you are not likely to get stable estimates of sd1 and sd2, unless you have many observations per subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Jun 2012 17:21:06 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2012-06-28T17:21:06Z</dc:date>
    <item>
      <title>Regression analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91941#M4508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello group, first post,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have one physiological outcome variable and 3 independent variables that I have measured in different conditions on the same subjects. Physiologically, my 3 dependent variables should be able to explain all of the outcome, so in linear regression, my model would look like this (without intercept):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;outcome = a*V1 + b*V2 + c*V3, with V1-3 being my independent variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far, pretty simple. However, for interpretation I would like/need to constrain a, b, c to &amp;gt;0 &amp;amp; &amp;lt;1, and that their sum should always be 1. &lt;/P&gt;&lt;P&gt;I've tried in NLMIXED:&lt;/P&gt;&lt;P&gt;proc nlmixed data=final;&lt;/P&gt;&lt;P&gt;bounds &lt;/P&gt;&lt;P&gt;a &amp;gt; 0, b &amp;gt; 0, a &amp;lt; 1, b &amp;lt; 1;&lt;/P&gt;&lt;P&gt;parameters&lt;/P&gt;&lt;P&gt;a = .3&lt;/P&gt;&lt;P&gt;b = .3&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;c = (1-a-b);&lt;/P&gt;&lt;P&gt;pred = a*V1 + b*V2 + c*V3;&lt;/P&gt;&lt;P&gt;model outcome ~ normal(pred,5);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All variables, including outcome, are continues between 0 and 100. They are a measure of hemoglobin saturation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this doesn't include subject-subject variation (random effect) and I don't get an estimate of c (fair enough).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help out there? Thanks. Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 06:53:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91941#M4508</guid>
      <dc:creator>RepetePete</dc:creator>
      <dc:date>2012-06-26T06:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Regression analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91942#M4509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You won't get an estimate for c under this parameterization, as V3 is a linear combination of V1 and V2.&amp;nbsp; As far as adding in a subject effect, see the first example in Getting Started: NLMIXED Procedure.&amp;nbsp; It is for nonlinear growth curves with gaussian data, but the principles for adding in a subject effect are clearly outlined.&amp;nbsp; You might actually end up with an estimate for c under this model, but it would represent sampling differences more than anything else--it still represents a fully collinear combination of V1 and V2 under the boundary conditions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Jun 2012 11:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91942#M4509</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-06-26T11:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Regression analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91943#M4510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Steve, thanks for you reply. I may have misunderstood your reply or maybe not phrased my question clearly. For that I apologise. The idea is to fit a model where V1-3 can fully explain the outcome variable so as far as my thinking goes, a+b+c = 1 is a requirement of the model. I do still get the same estimates for a, b and c if I replace "c = 1-a-b" with e.g "a = 1-b-c". Where is the flaw in my logic/thinking? Anyway, here is two examples of my code. The proc model I am fairly confident in but I am not sure I am adding the random effect the right way in proc nlmixed.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;title 'NIRO, arterial, venous, and skin contribution, without intercept';&lt;/P&gt;&lt;P&gt;proc model data=final;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ods output ParameterEstimates=NIROnoint;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bounds a &amp;gt; 0, a &amp;lt; 1, b &amp;gt; 0, b &amp;lt; 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters a = 0.50 b = 0.20;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = 1-a-b;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; niro_toi = a*sao2 + b*sjvo2 + c*moor_so2;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fit niro_toi;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; estimate 'Arterial' a, 'Venous' b, 'Skin' c;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;title 'NIRO, random effects model, arterial, venous, and skin contribution, without intercept';&lt;/P&gt;&lt;P&gt;proc nlmixed data=final ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bounds a &amp;gt; 0, b &amp;gt; 0, a &amp;lt; 1, b &amp;lt; 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameters a = .5 b = .25 sd1 = 110 sd2 = 0.03;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c = 1-a-b;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; pred = (a*sao2 + b*sjvo2 + c*moor_so2)*r;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; model niro_toi ~ normal(pred,sd1);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; random r ~ normal(1,sd2) subject=subject;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; estimate 'Arterial' a;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; estimate 'Venous' b;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; estimate 'Skin' c;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 06:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91943#M4510</guid>
      <dc:creator>RepetePete</dc:creator>
      <dc:date>2012-06-28T06:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Regression analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91944#M4511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is an interesting parameterization in the NLMIXED code--multiplying by a random effect.&amp;nbsp; Most of the models I have seen involve additive random effects around the parameters. My brain thinks of the additive pretty easily--the subjects come from a population with a multivariate normal distribution for the parameters, with variances for each and covariances between them.&amp;nbsp; Could you present a motivation for the multiplicative effect?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Given this approach, you may think about doing some recoding to force the multiplier to be consistently positive. Do a&amp;nbsp; search on the SAS-L listserv:archives for NLMIXED, and look particularly for articles by Dale McLerran.&amp;nbsp; He has several where log and exp transforms are used to constrain parameters to positive values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve Denham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 12:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91944#M4511</guid>
      <dc:creator>SteveDenham</dc:creator>
      <dc:date>2012-06-28T12:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Regression analysis</title>
      <link>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91945#M4512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will require some luck to get a c value greater than 0 with those programs. It would be safer to add the restriction a + b &amp;lt; 1 to the proc model statements. For nlmixed you will have to rely on luck or more complicated programming &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;. I think you are not likely to get stable estimates of sd1 and sd2, unless you have many observations per subject.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 17:21:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Statistical-Procedures/Regression-analysis/m-p/91945#M4512</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2012-06-28T17:21:06Z</dc:date>
    </item>
  </channel>
</rss>

