Re: [R] useR! 2011 T-shirt competition

2011-05-27 Thread Jose-Marcio Martins da Cruz
David Firth wrote: Dear R users: It is planned that participants in the R User Conference, useR! 2011 (August 16-18, http://R-project.org/useR-2011) will each receive a Better : http://www.R-project.org/useR-2011 __ R-help@r-project.org

Re: [R] How to extract information from the following dataset?

2011-05-12 Thread Jose-Marcio Martins da Cruz
Xin Zhang wrote: Hi all, I have never worked with this kind of data before, so Please help me out with it. I have the following data set, in a csv file, looks like the following: Jan 27, 2010 16:01:24,000 125 - - - Jan 27, 2010 16:06:24,000 125 - - - Jan 27, 2010 16:11:24,000 176 - - - Jan

Re: [R] use of ROCR package (ROC curve / AUC value) in a specific case versus integral calculation

2011-03-13 Thread Jose-Marcio Martins da Cruz
the number of couples out of order you can get. Hope this help. José-Marcio -- --- Jose Marcio MARTINS DA CRUZ http://j-chkmail.ensmp.fr Ecole des Mines de Paris 60, bd Saint Michel 75272 - PARIS CEDEX 06

Re: [R] calculate phase/amplitude of fourier transform function in R

2011-02-13 Thread Jose-Marcio Martins da Cruz
sammyny wrote: I did a fourier transform on a function in time domain to get the following functions in frequency domain (in latex): $Y_1[\omega] = \frac{1}{1-\phi_1 e^{-jw}}$ $Y_2[\omega] = \frac{1}{1-(\phi_1 + \phi_2)e^{-jw} +\phi_1\phi_2e^{-2jw}}$ How do I find the spectrum of this

[R] Time unit in ts() and arima() functions

2011-02-12 Thread Jose-Marcio Martins da Cruz
This question is surely trivial, sorry. I'm afraid I'm misunterpreting the information I got with the documentation, and I'm a little bit confused. I'm just an engineer with some little skills in statistics. Well, I have a time series - 600 days long - with some weekly periodicity inside.

Re: [R] Time unit in ts() and arima() functions

2011-02-12 Thread Jose-Marcio Martins da Cruz
Thanks for the hint. Helped a lot Gabor Grothendieck wrote: On Sat, Feb 12, 2011 at 7:48 AM, Jose-Marcio Martins da Cruz Functions which work with ts typically assume that a full cycle is represented by 1 unit so if a full cycle is a week then a week must be one unit and a day must be 1

Re: [R] predict and arima

2011-02-09 Thread Jose-Marcio Martins da Cruz
# for stationarity. # ... if no model can be found - return NULL -- --- Jose Marcio MARTINS DA CRUZ http://j-chkmail.ensmp.fr Ecole des Mines de Paris 60, bd Saint Michel 75272 - PARIS CEDEX 06

Re: [R] predict and arima

2011-02-08 Thread Jose-Marcio Martins da Cruz
I think ther's a bug here : bdp wrote: Some code I have been playing with to do this follows ... get.best.arima- function(x.ts, minord=c(0,0,0,0,0,0), maxord=c(2,1,1,2,1,1)) { # function based on 'Introductory Time Series with R' best.aic- 1e8 # a big number n-