turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Find a Community

- Home
- /
- Analytics
- /
- Stat Procs
- /
- Equation from Proc transreg

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

10-28-2015 04:17 PM

Proc Transreg looks like a powerful tool but it seems impossible to figure out the estimated model. From the SAS example I added "DETAIL" but only get knots and coefficients and can't relate them back to the transformation which I assume is cubic by default. The example below has 3 knots and therefore 4 cubic equations i.e. 12 coefficients plus an intercept but the output shows 7 coefficients. What am I doing wrong? is there a paper on this someplace? thanks for any help you can give. Joe.

title2 'A Cubic Spline Fit with Knots at X=5, 10, 15';

proc transreg detail data=a;

model identity(y) = spline(x / knots=5 10 15);

output out=trans coefficients;

proc print;

run;

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

10-29-2015 08:28 AM

Try using BSPLINE and PSPLINE to get the coefficients. BSPLINE should give what you need for the basis, realizing that SPLINE forms a linear combination of the columns of this basis. PSPLINE is piecewise polynomial, and from your description, that may be what you are expecting, so it is probably worth exploring that option as well. Good luck, and please share what you find back here.

Steve Denham