Statalist


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

st: AW: 'cnreg' command to fit Censored-normal regression model


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: 'cnreg' command to fit Censored-normal regression model
Date   Fri, 27 Feb 2009 09:19:13 +0100

<> 

I have a hunch that you will want to manipulate the content of these
matrices further. So note that you cannot directly work with the elements of
the returned matrices. You have to define a new matrix first.

*************
webuse news2, clear
cnreg date lncltn famown, censored(cnsrd)
mat list e(b)
mat def A=e(b)
mat list A
di A[1,3]
*************



HTH
Martin

-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Tracy Bai
Gesendet: Freitag, 27. Februar 2009 01:36
An: statalist@hsphsun2.harvard.edu
Betreff: st: 'cnreg' command to fit Censored-normal regression model

I am learning how to use 'cnreg' command to fit Censored-normal 
regression model, when I tried to get coefficient vector e(b), I got the 
error information like below,

. display  e(b)
matrix operators that return matrices not allowed in this context
r(509);

   Matrices      
      e(b)                coefficient vector
      e(V)                variance-covariance matrix of the estimators

How to fix the problem here?

Tracy

*
*   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