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, 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" <>
To   <>
Subject   st: Natural splines in clogit model
Date   Thu, 4 Mar 2010 17:24:37 +0100


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

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


*   For searches and help try:

© Copyright 1996–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index