Displaying 20 results from an estimated 1000 matches similar to: "B-spline/smooth.basis derivative matrices"
2012 Mar 12
1
Fwd: Re[2]: B-spline/smooth.basis derivative matrices
--- On Mon, 3/12/12, aleksandr shfets <a_shfets at mail.ru> wrote:
> From: aleksandr shfets <a_shfets at mail.ru>
> Subject: Fwd: Re[2]: [R] B-spline/smooth.basis derivative matrices
> To: "Vassily Shvets" <shv736 at yahoo.com>
> Received: Monday, March 12, 2012, 5:15 PM
>
>
>
> -------- ???????????? ?????????
> --------
> ?? ????:
2012 Feb 24
1
evaluating derivative matrices of spline functions
Hello,
I've noticed that SPLUS has a function for evaluating the derivative matrices of splines.
I've also noticed that there's a function in R for evaluating matrices from smooth.spline;
maybe someone knows if something has been written to evaluate matrices from 'smooth.basis'?
regards,
s
2011 Oct 22
1
estimation of ode from data
Hello,
I'm used to working with R in estimation of distributions and statistical models. I'd like to estimate a simple model of an output y(t) based on a concentration as independent variable, using a timed series of experimental data; I've seen this I think somewhere in R? I'd appreciate to hear if anybody has used this with success.
regards,
S
2006 Dec 13
2
caching frequently used values
Hi,
I am trying to find an elegant way to compute and store some
frequently used matrices "on demand". The Matrix package already uses
something like this for storing decompositions, but I don't know how
to do it.
The actual context is the following:
A list has information about a basis of a B-spline space (nodes,
order) and gridpoints at which the basis functions would be
2011 Jan 21
1
stochastic models for population growth
Hello,
Having measured two populations' characteristics at one particular time[with great precision] with R, I would like to extend this to measuring the same populations starting at t1, and then again at t2, and try to develop a growth model (something like dpop1/dt=r*pop^(...),dpop2/dt=r*pop^(...)). I think the idea is to create a model that will predict the growth of a population(N(mu,
2016 Mar 04
2
R 3.2.4 rc issue
I generally run 'make; make check' (with more settings) when building the
Debian package. Running 3.2.4 rc from last night, I see a lot of package
loading issues during 'make check'. Here is splines as one examples:
checking package 'splines'
* using log directory '/build/r-base-3.2.3.20160303/tests/splines.Rcheck'
* using R version 3.2.4 RC (2016-03-02 r70270)
*
2011 Mar 28
2
mgcv gam predict problem
Hello
I'm using function gam from package mgcv to fit splines. ?When I try
to make a prediction slightly beyond the original 'x' range, I get
this error:
> A = runif(50,1,149)
> B = sqrt(A) + rnorm(50)
> range(A)
[1] 3.289136 145.342961
>
>
> fit1 = gam(B ~ s(A, bs="ps"), outer.ok=TRUE)
> predict(fit1, newdata=data.frame(A=149.9), outer.ok=TRUE)
Error
2008 Jul 29
1
tensor product of equi-spaced B-splines in the unit square
Dear all,
I need to compute tensor product of B-spline defined over equi-spaced
break-points.
I wrote my own program (it works in a 2-dimensional setting)
library(splines)
# set the break-points
Knots = seq(-1,1,length=10)
# number of splines
M = (length(Knots)-4)^2
# short cut to splineDesign function
bspline = function(x) splineDesign(Knots,x,outer.ok = T)
# bivariate tensor product of
2008 Jul 17
1
smooth.spline
I like what smooth.spline does but I am unclear on the output. I can see from the documentation that there are fit.coef but I am unclear what those coeficients are applied to.With spline I understand the "noraml" coefficients applied to a cubic polynomial. But these coefficients I am not sure how to interpret. If I had a description of the algorithm maybe I could figure it out but as it
2012 Aug 02
2
Rd] Numerics behind splineDesign
On 08/02/2012 05:00 AM, r-devel-request at r-project.org wrote:
> Now I just have to grovel over the R code in ns() and bs() to figure
> out how exactly they pick knots and handle boundary conditions, plus
> there is some code that I don't understand in ns() that uses qr() to
> postprocess the output from spline.des. I assume this is involved
> somehow in imposing the boundary
2006 Nov 15
1
splineDesign and not-a-knot conditions
Hi,
I would like to fit an (interpolating) spline to data where the
derivatives at the endpoints of the interval are nonzero, thus the
natural spline endpoint-specification does not make sense. Books (de
Boor, etc) suggest that in this case I use not-a-knot splines.
I know what not-a-knot splines are (so if I were solving for the
coefficients directly I knew how to do this), but I don't
2008 Dec 16
1
Application b-spline basis for polynomial splines
Hai everbody, Is there anyone have simple application b-spline in r language? I need it for make me understanding about b-spline for polynomial spline.
thank u
Arif
New Email addresses available on Yahoo!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
[[alternative HTML version deleted]]
2013 Nov 01
0
Impose constraint on first order derivative at a point for cubic smoothing spline
Hello,
Dr. Simon Wood told me how to force a cubic spline passing through a
point. The code is as following. Anyone who knows how I can change the code
to force the first derivative to be certain value. For example, the first
derivative of the constrained cubic spline equals 2 at point (0, 0.6).
I really appreciate your help!
Thanks!
Best
Victor
2003 Feb 28
0
How do I find the first derivative from the cubic natural spline
Hi, Everyboday,
Does anybody know how to get the first derivative form the cubic natural
spline matrix?
Thanks !!!
Jassy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Nuoo-Ting (Jassy) Molitor, MS, Junior Statistician
Division of Biostatistics
Department of Preventive Medicine
University of Southern California Tel: (323) 442-2584
1540 Alcazar St., CHP-210F Fax:
2010 Sep 26
1
Basis functions of cubic regression spline in mgcv
I have a question about the basis functions of cubic regression spline in
mgcv. Are there some ways I can get the exact forms of the basis functions
and the penalty matrix that are used in mgcv? Thanks in advance!
Yan
[[alternative HTML version deleted]]
2008 Jul 16
0
Confidence bands for model estimates using ns() spline basis
Hi,
I am using ns() to model the effect of time on some outcome y
[ specifically, I am using polr() in a model of the form
mod1=polr(y~x1+x2*ns(Year,df=3),...) , with x1 and x2 denoting several
covariates each ]
I understand how to use the spline basis as recorded in the model matrix in
order to reproduce the model fit and to generate curves of the point
estimates of the time effect,
2005 Jul 19
2
Taking the derivative of a quadratic B-spline
Hello,
I have been trying to take the derivative of a quadratic B-spline
obtained by using the COBS library. What I would like to do is
similar to what one can do by using
fit<-smooth.spline(cdf)
xx<-seq(-10,10,.1)
predict(fit, xx, deriv = 1)
The goal is to fit the spline to data that is approximating a
cumulative distribution function (e.g. in my example, cdf is a
2-column matrix with x
2005 Jun 03
2
using so-library involving Taucs
Dear R developers,
The trace of the hat matrix H~(n,n) is computed as follows:
tr(H) = tr(BS^-1B') = tr(S^-1B'B) := tr(X) = sum(diag(X))
with B~(n,p), S~(p,p).
Since p is of the order 10^3 but S is sparse I would like to employ
Taucs linear solver ( http://www.tau.ac.il/~stoledo/taucs/ ) on
SX = B'B.
(Further improvement by implying a looping over i=1,...,p, calling
2010 Apr 14
1
Selecting derivative order penalty for thin plate spline regression (GAM - mgcv)
Hi,
I am using GAMs (package mgcv) to smooth event rates in a penalized regression setting and I was wondering if/how one can
select the order of the derivative penalty.
For my particular problem the order of the penalty (parameter "m" inside the "s" terms of the formula argument) appears to
have a larger effect on the AIC/deviance of the estimated model than the
2006 Feb 27
3
how to use the basis matrix of "ns" in R? really confused by multi-dim spline filtering?
Hi all,
Could anybody recommend some easy-to-understand and example based
notes/tutorials on how to use cubic splines to do filtering on
multi-dimension data?
I am confused by the 1-dimensional case, and more confused by
multi-dimensional case.
I found all the books suddenly become very abstract when it comes to this
subject.
They don't provide examples in R or Splus at all.
Specifically,