Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: AW: Tobit with - cmp -


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Tobit with - cmp -
Date   Thu, 19 Aug 2010 15:20:42 +0200

<> 

Once you include the line 
-replace fem_inc = fem_inc - 10-
in your example, they do give the same result. 

You have to scroll through this -rather large- help file from top to bottom
not to miss these things. 

-cmp- can be obtained from -ssc-, btw:

*************
cmp setup
webuse laborsup, clear
replace fem_inc = fem_inc - 10
tobit fem_inc kids male_educ, ll
cmp (fem_inc = kids male_educ), ind("cond(fem_inc, $cmp_cont, $cmp_left)")
qui
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Giacomo Zanello
Gesendet: Donnerstag, 19. August 2010 15:01
An: statalist@hsphsun2.harvard.edu
Betreff: st: Tobit with - cmp -

Dear Statalist Participants,

I am learning to use the - cmp - command, but I cannot replicate the tobit
example in Roodman, 2009 with Stata 11.1. Could someone confirm me if the 
following codes - tobit - and - cmp - give the same output? When I run them,

I got different results.

. cmp setup
. webuse laborsup, clear
. tobit fem_inc kids male_educ, ll
. cmp (fem_inc = kids male_educ), ind("cond(fem_inc, $cmp_cont, $cmp_left)")

qui

Many thanks for your help.
Giacomo Zanello

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