Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: Spline implementing generalized cross-validation

From   Garry Anderson <>
To   "" <>
Subject   st: Spline implementing generalized cross-validation
Date   Tue, 1 Nov 2011 07:25:57 +0000

Dear Statalist,

I am wanting to use Stata to generate a spline that uses generalized cross-validation (gcv). Ideally the Stata command would duplicate the results from SAS Proc TPSPLINE or R smooth.spline. The Stata command -pspline- does not implement gcv.

The spline would form a function that sums the squares of residuals plus some penalty function. The penality function is a product of a smoothing parameter times a measure of roughness, such as the integral of the square of the second derivative of the function. The gcv is used to determine the smoothing parameter.

Any pointers to such a Stata command would be appreciated.

Kind regards, Garry

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index