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: 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–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index