Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: addressing coefficients for residuals variance from xtmixed


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: addressing coefficients for residuals variance from xtmixed
Date   Fri, 8 May 2009 12:32:15 +0200

<> 



*************

//     Setup
        webuse pig, clear

//     One-level random-effects model
       xtmixed weight week || id:

//show 'em
mat l e(b)

di exp(_b[lns1_1_1:_cons])
di exp(_b[lnsig_e:_cons])

//store 'em
scalar sdcons=exp(_b[lns1_1_1:_cons])
scalar sdres=exp(_b[lnsig_e:_cons])


scalar list _all
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Marcelo Jenny
Gesendet: Freitag, 8. Mai 2009 12:10
An: statalist@hsphsun2.harvard.edu
Betreff: st: addressing coefficients for residuals variance from xtmixed

Hi,

how can I address the estimated values of the variance components from a
xtmixed model.

Using matrix list e(b) I can see that they are the last elements in the
vector of coefficients

I need a little help for the step of transferring a specific element of
the vector into a scalar.

Thanks in advance,
Marcelo


-- 
Mag. Marcelo Jenny
Lehrstuhl f. Politische Wissenschaft III
Prof. Wolfgang C. Müller
Fakultät für Sozialwissenschaften
Universität Mannheim
Seminargebäude A5, Zi. 338
D-68131 Mannheim
Tel. +49/621/181-2077
Fax: +49/621/181-2080
Email: mjenny@uni-mannheim.de
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index