Statalist


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

st: RE: re: Can we apply -truncreg- in panel data?


From   Jeetendra Aryal <jeetendra.aryal@umb.no>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: re: Can we apply -truncreg- in panel data?
Date   Sat, 21 Nov 2009 17:43:24 +0100

Dear C. Baum,
Thank you for quick help.
I tried the commands you suggested but it reports as follows:

.reg invest mvalue time i.company if invest>120
i:  operator invalid
r(198);


My question was: Can we use -truncreg- command in Panel data (PD) as we use it for Cross Section Data (CSD)? For example: in doing simple regression in CSD we use -reg- command, while doing the same in PD we use- xtreg- command. Like wise: if 
.probit (CSD) vs. xtprobit (PD)
.tobit (CSD) vs. xttobit (PD)
.poisson (CSD) vs. xtpoisson (PD)
 then; 

.truncreg (CSD) vs  ??(PD)

Any suggestions are welcome!!

regards,
J. Aryal










________________________________________
From: owner-statalist@hsphsun2.harvard.edu [owner-statalist@hsphsun2.harvard.edu] On Behalf Of Kit Baum [Baum@bc.edu]
Sent: Saturday, November 21, 2009 5:07 PM
To: statalist@hsphsun2.harvard.edu
Subject: st: re: Can we apply -truncreg- in panel data?

<>
webuse grunfeld
reg invest mvalue time i.company if invest>120
truncreg invest mvalue time i.company, ll(120)

Note that the OLS coefficients are attenuated.

Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                              An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
   An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html


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