Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: -csipolate- available on SSC for cubic spline interpolation


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: -csipolate- available on SSC for cubic spline interpolation
Date   Fri, 20 Feb 2009 14:45:03 -0000

Thanks to Kit Baum, a new package -csipolate- is now available on SSC.
Use
-ssc- to install. Stata 9 is (definitely) required. 

Stata has long had cubic spline interpolation just below the surface in
various ways, e.g. within its graphics and within its numerical calculus
commands, and since Stata 9 within Mata, but unless I am missing
something there has not hitherto been a command similar in spirit to
-ipolate- for linear interpolation. 

I've been vaguely hoping that someone else would write this first, but
as many Statalist readers know such hopes are often in vain. 

That's what -csipolate- offers. It's a wrapper for the Mata functions.
It may save someone working out how to interface those Mata functions
with Stata and how to add appropriate traps and safeguards for
pathologies that may occur.   

Support in neighbouring territory for interpolation is here and there in
bits and pieces. For example, an all-Stata command -cipolate- for cubic
interpolation has been available on SSC for some while, while Ben Jann's
-moremata- on SSC independently offers a more general polynomial
interpolation function in Mata. If I've missed anything, so sing out. 

Nick 
n.j.cox@durham.ac.uk 


*
*   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   |   What's new   |   Site index