<?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 obtaining random effect estimates with proc tmodel in SAS Software for Learning Community</title>
    <link>https://communities.sas.com/t5/SAS-Software-for-Learning/obtaining-random-effect-estimates-with-proc-tmodel/m-p/865439#M1040</link>
    <description>&lt;P&gt;Hello, I am trying to use tmodel to estimate a demand model with endogenous prices and a random price coefficient. It works, but I have not been able to find the command to produce empirical bayes estimates of the random effects and to put them into a SAS data set. Here is my code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;proc tmodel data=some_data_file outparms=some_output_file;
crosssection upc&amp;nbsp; ;
endogenous logPrice;
parms a -2
b0 -2
s2u .1;
instruments logpriceInst;
logUnitSales = a + (b0 + b1)*logPrice;
performance nthreads = 8;
random b1 ~ normal(0, s2u);
fit logUnitSales ;
run;
QUIT;&lt;/PRE&gt;&lt;P&gt;So far, it does create a file with the estimated fixed effects but not the random effects. Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Mar 2023 14:22:40 GMT</pubDate>
    <dc:creator>RBA</dc:creator>
    <dc:date>2023-03-21T14:22:40Z</dc:date>
    <item>
      <title>obtaining random effect estimates with proc tmodel</title>
      <link>https://communities.sas.com/t5/SAS-Software-for-Learning/obtaining-random-effect-estimates-with-proc-tmodel/m-p/865439#M1040</link>
      <description>&lt;P&gt;Hello, I am trying to use tmodel to estimate a demand model with endogenous prices and a random price coefficient. It works, but I have not been able to find the command to produce empirical bayes estimates of the random effects and to put them into a SAS data set. Here is my code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;proc tmodel data=some_data_file outparms=some_output_file;
crosssection upc&amp;nbsp; ;
endogenous logPrice;
parms a -2
b0 -2
s2u .1;
instruments logpriceInst;
logUnitSales = a + (b0 + b1)*logPrice;
performance nthreads = 8;
random b1 ~ normal(0, s2u);
fit logUnitSales ;
run;
QUIT;&lt;/PRE&gt;&lt;P&gt;So far, it does create a file with the estimated fixed effects but not the random effects. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Mar 2023 14:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Software-for-Learning/obtaining-random-effect-estimates-with-proc-tmodel/m-p/865439#M1040</guid>
      <dc:creator>RBA</dc:creator>
      <dc:date>2023-03-21T14:22:40Z</dc:date>
    </item>
  </channel>
</rss>

