search for: thierrydb

Displaying 8 results from an estimated 8 matches for "thierrydb".

Did you mean: thierry
2007 Dec 14
1
Function built with segments
Hello, I'm new to R. If I have a set of 10 points (X(i), Y(i)), is there an elegant way to build a function y=f(x) that would be build out of the consecutive segments of X(j),Y(j) points (with X(j) sorted)? Thank you very much TDB -- View this message in context: http://www.nabble.com/Function-built-with-segments-tp14337780p14337780.html Sent from the R help mailing list archive at
2008 May 27
1
R package to solve the following maximization problem
Hello, I would like to know if there's a package in R to solve the following problem: Let's consider a cloud of points in a n-dimensional space. Each point is associated to a specific value Vi (a real that can be positive or negative). I would like to find the n-dimensional hypercube that maximizes the sum of Vi corresponding to the points inside of the hypercube. How would you solve
2011 Nov 09
1
Are there equivalents to xblocks or rect that can be used with plot.xts?
I would like to add vertical shaded blocks in plot.xts graphs (like recession periods in FRED graphs) The reason I use plot.xts instead of plot.zoo is that I like the fact that the grid is automatically aligned with major ticks in plot.xts. xblocks() and rect() do not seem to work with plot.xts (only with plot.zoo). Are there any alternative methods that work with plot.xts? Thanks. -- View
2011 Jul 26
2
Calculate the latest Z-score of all zoo time series
Hello, I have a population of 2000+ zoo time series (but my environment also contains objects that are not zoo time series). I'm trying to calculate the latest 90 days Z-Score of all zoo time series, using the following code: LZS<-function(ser) { temp<-window(ser,start=Sys.Date()-90) last((temp-mean(temp))/sd(temp)) } sapply(ls(), LZS ) The LZS function works on individual zoo time
2011 Oct 08
1
Filling missing days in xts time series
Hi, I have a bunch of irregularly spaced xts time series (with a POSIX index), and I'm trying to write a function that fillls the missing days. Using a solution suggested by Gabor Grothendieck for zoo, I wrote the following: # FD: Fill missing days FD<-function(ser) {rng<-range(time(ser)) > temp<-merge(ser,xts(,seq(rng[1],rng[2],"day"))) >
2011 May 28
1
How to do operations on zoo/xts objects with Monthly and Daily periodicities
Is there an elegant way to do operations (+/-/*/ / ) on zoo/xts objects when one serie is monthly (end of month) and the other daily (weekdays only) - typically a monthly economic indicator and a stock index price? Thanks, TDB -- View this message in context: http://r.789695.n4.nabble.com/How-to-do-operations-on-zoo-xts-objects-with-Monthly-and-Daily-periodicities-tp3558081p3558081.html
2007 Dec 13
1
Gaussian Smoothing
Hello, I'm new to R, and I would like to know if there is a way to smooth a curve using a Gaussian smoothing with R. Thank you very much, TDB -- View this message in context: http://www.nabble.com/Gaussian-Smoothing-tp14321313p14321313.html Sent from the R help mailing list archive at Nabble.com.
2008 Feb 20
1
R square for Monotone regression
I'm using the monoreg function (with weights) from the fdrtool package. How can I calculate the R square for this type of regression? Thanks for your help, Thierry -- View this message in context: http://www.nabble.com/R-square-for-Monotone-regression-tp15580803p15580803.html Sent from the R help mailing list archive at Nabble.com.