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]

st: Natural splines in clogit model


From   "Tomas Lind" <tomas.lind@ki.se>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: Natural splines in clogit model
Date   Thu, 4 Mar 2010 17:24:37 +0100

Statalisters,

Is it possible to make a "a natural spline with 3 degrees of freedom" for
temperature that corresponds to this syntax in R.

-ns(tmpd, 3)-


There are lots of different types of splines and I have tried this cubic
spline.

mkspline  tmeanS = tmean , nknots(3) cubic displayknots


clogit  death1  pm10   tmeanS*  dptpS*   [fw=vikt]  , group(id)	


Anyone know if these splines are the same or if it is possible to do the
first one in Stata


/Tomas




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