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]

Re: st: gpscore


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: gpscore
Date   Fri, 30 Mar 2012 09:02:43 +0100

-gpscore- is a user-written command, as you are asked to explain. You
should install from

st0150_3 from http://www.stata-journal.com/software/sj10-4
    SJ10-4 st0150_3.  Update: A Stata package for the... / Update: A Stata
    package for the estimation of the / dose-response function through
    adjustment for the / generalized propensity score / by Alessandra Mattei,
    Department of Statistics / "Giuseppe Parenti", University of Florence /

The code you quote works fine for me. As above, install the latest
corrected version.

Nick

On Fri, Mar 30, 2012 at 8:30 AM, ming li <[email protected]> wrote:

> I'm trying to use gpscore in my stata, but the programs breaks every
> time. I cannot even run the following example do-file.
>
> clear
>
> use "LotteryDataSet.dta", clear
> qui gen     cut = 23  if prize<=23
> qui replace cut = 80  if prize>23 & prize<=80
> qui replace cut = 485 if prize >80
>
>
> #delimit ;
> gpscore
> agew male  ownhs owncoll tixbot workthen yearw yearm1 yearm2 yearm3
> yearm4 yearm5 yearm6,
> t(prize) gpscore(pscore) predict(hat_treat) sigma(sd) cutpoints(cut)
> index(p50) nq_gps(5) t_transf(ln) det
> ;
> #delimit cr
> clear
> exit
>
> Stata returns "invalid syntax" every time after generating the
> variables T and  _MLtu1. I cannot get the estimated propensity score
> using this command. Could you help me with it?
>

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