Re: [R] How to generate piecewise cubic spline with many knots?

2011-08-22 Thread xuyongdeng
Any commons is great appreciated. -- View this message in context: http://r.789695.n4.nabble.com/How-to-generate-piecewise-cubic-spline-with-many-knots-tp3755419p3759893.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.

[R] How to generate piecewise cubic spline with many knots?

2011-08-19 Thread xuyongdeng
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 t

Re: [R] How to generate bivariate exponential distribution?

2011-06-16 Thread xuyongdeng
Petr Savicky-2, thanks you. It seems the code works very well. I use rate=1, so "common" is between 0 to 1. Thanks again. -- View this message in context: http://r.789695.n4.nabble.com/How-to-generate-bivariate-exponential-distribution-tp3596944p3602539.html Sent from the R help mailing list arch

[R] How to generate bivariate exponential distribution?

2011-06-14 Thread xuyongdeng
Any one know is there any package or function to generate bivariate exponential distribution? I gusee there should be three parameters, two rate parameters and one correlation parameter. I just did not find any function available on R. Any suggestion is appreciated. -- View this message in cont