s-news
[Top] [All Lists]

Re: bs() function

To: Eric yang <yang_eric9@yahoo.com>
Subject: Re: bs() function
From: Tim Hesterberg <timh@insightful.com>
Date: 26 Sep 2005 17:05:42 -0700
Cc: s-news@wubios.wustl.edu
In-reply-to: <20050915135037.81021.qmail@web33912.mail.mud.yahoo.com> (message from Eric yang on Thu, 15 Sep 2005 06:50:37 -0700 (PDT))
References: <20050915135037.81021.qmail@web33912.mail.mud.yahoo.com>
Clarification: S+Resample and S+BEST are separate libraries.
Both are available from 
        www.insightful.com/downloads/libraries

S+Resample contains a version of spline() with a `derivative'
argument, that could be used for the specific request below.

S+Best contains functions for density estimation, hazard regression,
and adaptive generalized linear modeling, all based on splines.
I don't think it has code for the specific request below.

There is a third library available from the same site, S+FunctionalData,
that could be used here, though it is probably overkill.

Tim Hesterberg

>For some unknown reason i'm having difficulties accessing the BEST
>library in version 7.0. Ideally, I would like to use spline() from
>the resample library in BEST but not currently possible. So i'm
>trying to replicate this with the bs(), essentially all i'm after is
>to calculate a column of first dervatives for my x-values at the
>known y values using a cublic spline. However, not sure how to
>convert the output matrix from bs() to the desired output (i.e. just
>a column of first derivatives).

========================================================
| Tim Hesterberg       Research Scientist              |
| timh@insightful.com  Insightful Corp.                |
| (206)802-2319        1700 Westlake Ave. N, Suite 500 |
| (206)283-8691 (fax)  Seattle, WA 98109-3012, U.S.A.  |
|                      www.insightful.com/Hesterberg   |
========================================================
Download the S+Resample library from www.insightful.com/downloads/libraries

Insightful 2005 User Conference
Princeton, NJ, Oct. 26-27, 2005
Don't miss the keynote by Dr. Bill Meeker!
Special Pricing: $199 Commercial/$99 Academic
www.insightful.com/news_events/2005uc


<Prev in Thread] Current Thread [Next in Thread>