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]
st: Natural splines in clogit model
From
"Tomas Lind" <[email protected]>
To
<[email protected]>
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/