12-20-2013 01:16 PM
I have a small dataset of x and y values that create a downward trending curve. Using my vast statistical vocabulary, it looks like an "L". I'm trying to determine the equation for it. Looks like I can use proc transreg to fit the curve but how do I output the equation?
12-20-2013 01:59 PM
The output should contain estimates for the terms in the model. That should provide the equation of interest.
However, if you use a semiparametric method like a spline, there isn't really a closed form equation that you can output.
12-20-2013 04:09 PM
Sorry, this is new to me. Could use some handholding. So let's say I have this dataset:
input months growth_rate;
So this is the "L" curve. Ultimately I want to project this curve out to 120 months, or 240 months, and beyond. How would I fit this curve and then estimate the "growth rate" at whatever point I want?
12-23-2013 08:54 AM
If your ultimate objective is to project out, then I would really urge you to look into the SAS/ETS procedures--ARIMA and MODEL may be appropriate. Extrapolating beyond the range of existing data is extremely dangerous for ordinary least squares or maximum likelihood methods, such as those used by SAS/STAT procedures. However, it can be done. Append records to the end of your data, indicating months and with growth_rate set to missing. For the two time points you mention, it would mean adding
to your existing dataset. Now whatever procedure you use will fit based on complete data, but OUTPUT datasets can be set up to contain predicted values and confidence intervals.
I would do a search on this site for "hockey stick" and "PROC NLIN" as a way to fit this data.