Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: How to make prediction after a spline regression


From   Shige Song <ssong@nicco.sscnet.ucla.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: How to make prediction after a spline regression
Date   Fri, 9 Apr 2004 11:34:06 -0700 (PDT)

Dear All,

I would like to follow my previous question about how to use spline.
Suppose I create a spline using "frencurv" and then estimate a logistic
regression like this:

. frencurv, xvar(school) refpts(0(4)16) gen(sch) power(1)
. xtlogit unemp sch* X, re i(id) noconstant

How to generated predicted probablity so that I can create a two-way plot
of "prob(unemp) by school", like the one in pp.7 in bspline user guide?
Thank you very much!

Best,
Shige
*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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