Hi all,

I have a series of intra-day data. The variables exhibit a typical daily
pattern over the day. I need to diurnallly adjust the data. It takes the
follow form


1, regress y on a piecewise cubic spline of x with knots (a1,a2,a3,a4...). x
is the time of a day.
2, divide original series by the spline forecast.

I know there are some functions to do the spline, like bs, splint, I do not
know which one is exactly I need.

Does anyway give me some suggestion?

Thanks.

--
View this message in context: 
http://r.789695.n4.nabble.com/How-to-generate-piecewise-cubic-spline-with-many-knots-tp3755419p3755419.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to