Find the Curve Fit Equation for the smooth.spline function
book
Article ID: KB0080960
calendar_today
Updated On:
Products
Versions
Spotfire S+
All supported versions
Description
In order to evaluate a trend in data the user might take advantage of the smooth.spline function. How can they get the curve fit equation for the output?
Issue/Introduction
Find the Curve Fit Equation for the smooth.spline function
Environment
Product: TIBCO Spotfire S+
Version: All supported versions
OS: All supported operating systems
--------------------
Resolution
Unfortunately there is not a way to get the smoothing equation out of the smooth.spline() function. It is possible to extract a list containing the details of the fit. This list contains the knot locations, coefficients, etc. Please see the following example:
--------------------------- > attach(air) test <- smooth.spline(ozone, temperature)