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 on April 23, and its replacement, statalist.org is already up and running.


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

AW: st: how to use treatreg


From   "Dr. Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   AW: st: how to use treatreg
Date   Tue, 3 Aug 2010 11:42:48 +0200

<> 

I wanted you to -tabulate- the treatment variable, so you can see whether
there are values other than 0 and 1, which would disqualify the variable for
your purposes. You could also -inspect- the var, or -assert- the values:

***
sysuse auto, clear
inspect foreign
assert inlist(foreign,0,1)
***


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Jing Zhou
Gesendet: Dienstag, 3. August 2010 11:37
An: statalist@hsphsun2.harvard.edu
Betreff: RE: st: how to use treatreg

hi, Martin, what do you mean by "ta treatmentvar"? i do include dummy
variable in "treat (dep_t = indep_t)".

Jing

>>> "Martin Weiss" <martin.weiss1@gmx.de> 30/07/2010 4:16 pm >>>
<>
What does -ta treatmentvar- give you?

HTH
Martin

-original message-
Subject: st: how to use treatreg
From: "Jing Zhou" <jing.zhou@rmit.edu.au>
Date: 30-07-2010 04:36

Dear All,

I am going to use treatment effects model to address the self-selection
problem in my models. when using "treatreg dep indep, treat (dep_t =
indep_t)", the result shows "invalid treatment values. only 0 and 1 are
allowed". in fact, my treatment indicator which is specified in () is a
dummy with 1 or 0 values only. Could you please advise me why this happens
and how i can correctly use this command? 

Many thanks!

Jing 


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


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