Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

AW: st: how to use treatreg


From   "Dr. Martin Weiss" <[email protected]>
To   <[email protected]>
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: [email protected]
[mailto:[email protected]] Im Auftrag von Jing Zhou
Gesendet: Dienstag, 3. August 2010 11:37
An: [email protected]
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" <[email protected]> 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" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index