<?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 define class-like variable in PROC NLMIXED? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/How-to-define-class-like-variable-in-PROC-NLMIXED/m-p/601719#M76401</link>
    <description>&lt;P&gt;I'm trying to model the some variable according to the normal distribution with the following parameters:&lt;/P&gt;&lt;P&gt;- It has some mean, depending on in which class it is (for this I have the indicator variables V3,V4,V5,V6 which for each entry one is 1, the others are 0) and some variance depending on a few parameters: the group, subgroup, device and method. Now all these have some normal distribution with mean 0 and unknown variance (it is the variance that I want to model), but all groups are identically distributed (so group 1 and 2 follow the same distribution), but within a group all values are the same (so the contribution that being in group 1 yields to every sample in the group is the same). In total I get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V2 = mean + variance caused by group + variance caused by subgroup + variance caused by device + variance caused by method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where all variances are stochastic and assumed to be normal(0,x) where I want to find the 4 x's..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to do this with proc NLmixed and classifying the group,subset,device,method as class variables, but that doesn't exist... so my question is how to deal with this problem? The code I have is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC NLMIXED DATA=para1;&lt;/P&gt;&lt;P&gt;PARMS a = 0.00001, b = 0.000001, c = 0.000001,d = 0.000001,e = 0.000001;&lt;BR /&gt;mu = a + b*V3 + c*V4 + d*V5 + e*V6;&lt;BR /&gt;sigma = ???;&lt;BR /&gt;MODEL V2 ~ Normal(mu,sigma);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where if I take for example sigma=0.00001 I can find the a,b,c,d,e I'm looking for, but I also want to estimate the variances.&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2019 17:24:33 GMT</pubDate>
    <dc:creator>Ajktulm</dc:creator>
    <dc:date>2019-11-05T17:24:33Z</dc:date>
    <item>
      <title>How to define class-like variable in PROC NLMIXED?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-define-class-like-variable-in-PROC-NLMIXED/m-p/601719#M76401</link>
      <description>&lt;P&gt;I'm trying to model the some variable according to the normal distribution with the following parameters:&lt;/P&gt;&lt;P&gt;- It has some mean, depending on in which class it is (for this I have the indicator variables V3,V4,V5,V6 which for each entry one is 1, the others are 0) and some variance depending on a few parameters: the group, subgroup, device and method. Now all these have some normal distribution with mean 0 and unknown variance (it is the variance that I want to model), but all groups are identically distributed (so group 1 and 2 follow the same distribution), but within a group all values are the same (so the contribution that being in group 1 yields to every sample in the group is the same). In total I get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V2 = mean + variance caused by group + variance caused by subgroup + variance caused by device + variance caused by method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where all variances are stochastic and assumed to be normal(0,x) where I want to find the 4 x's..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to do this with proc NLmixed and classifying the group,subset,device,method as class variables, but that doesn't exist... so my question is how to deal with this problem? The code I have is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC NLMIXED DATA=para1;&lt;/P&gt;&lt;P&gt;PARMS a = 0.00001, b = 0.000001, c = 0.000001,d = 0.000001,e = 0.000001;&lt;BR /&gt;mu = a + b*V3 + c*V4 + d*V5 + e*V6;&lt;BR /&gt;sigma = ???;&lt;BR /&gt;MODEL V2 ~ Normal(mu,sigma);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where if I take for example sigma=0.00001 I can find the a,b,c,d,e I'm looking for, but I also want to estimate the variances.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 17:24:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-define-class-like-variable-in-PROC-NLMIXED/m-p/601719#M76401</guid>
      <dc:creator>Ajktulm</dc:creator>
      <dc:date>2019-11-05T17:24:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to define class-like variable in PROC NLMIXED?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/How-to-define-class-like-variable-in-PROC-NLMIXED/m-p/601722#M76403</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/277201"&gt;@Ajktulm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I'm trying to model the some variable according to the normal distribution with the following parameters:&lt;/P&gt;&lt;P&gt;- It has some mean, depending on in which class it is (for this I have the indicator variables V3,V4,V5,V6 which for each entry one is 1, the others are 0) and some variance depending on a few parameters: the group, subgroup, device and method. Now all these have some normal distribution with mean 0 and unknown variance (it is the variance that I want to model), but all groups are identically distributed (so group 1 and 2 follow the same distribution), but within a group all values are the same (so the contribution that being in group 1 yields to every sample in the group is the same). In total I get&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;V2 = mean + variance caused by group + variance caused by subgroup + variance caused by device + variance caused by method&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where all variances are stochastic and assumed to be normal(0,x) where I want to find the 4 x's..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wanted to do this with proc NLmixed and classifying the group,subset,device,method as class variables, but that doesn't exist... so my question is how to deal with this problem? The code I have is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC NLMIXED DATA=para1;&lt;/P&gt;&lt;P&gt;PARMS a = 0.00001, b = 0.000001, c = 0.000001,d = 0.000001,e = 0.000001;&lt;BR /&gt;mu = a + b*V3 + c*V4 + d*V5 + e*V6;&lt;BR /&gt;sigma = ???;&lt;BR /&gt;MODEL V2 ~ Normal(mu,sigma);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where if I take for example sigma=0.00001 I can find the a,b,c,d,e I'm looking for, but I also want to estimate the variances.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See example 82.6:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.sas.com/documentation/onlinedoc/stat/141/nlmixed.pdf" target="_blank"&gt;https://support.sas.com/documentation/onlinedoc/stat/141/nlmixed.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 17:35:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/How-to-define-class-like-variable-in-PROC-NLMIXED/m-p/601722#M76403</guid>
      <dc:creator>DWilson</dc:creator>
      <dc:date>2019-11-05T17:35:56Z</dc:date>
    </item>
  </channel>
</rss>

