[R] Enquiry for applying Self-Organizing Map for Time Series Prediction in R

2013-09-03 Thread YoungrangKang
Dear Sir/Madam Hi, my name is Youngrang Kang and I have started to study R for about a few months ago. I have used some Time Series Prediction (TSP) Models in R and I have found an interesting TSP Model, which is Self-Organizing Map(SOM) for TSP. I have read the articles on the R Package

[R] enquiry

2012-10-01 Thread Karan Anand
hi, I am new to using R ,I have 2 datasets with dates common in them ,how can i take out the common dates within them. karan [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] enquiry

2012-10-01 Thread R. Michael Weylandt
On Monday, October 1, 2012, Karan Anand wrote: hi, I am new to using R ,I have 2 datasets with dates common in them ,how can i take out the common dates within them. Depending on what you mean by 'out' either merge() or setdiff() RMW karan [[alternative HTML version

Re: [R] enquiry

2012-10-01 Thread Rui Barradas
Hello, Or maybe %in%. x - Sys.Date() + 1:10 y - Sys.Date() + 7:15 x %in% y # logical index into 'x' x[x %in% y] # common x[!x %in% y] # not common setdiff(x, y) # doesn't keep class Date Hope this helps, Rui Barradas Em 01-10-2012 15:57, R. Michael Weylandt escreveu: On Monday, October

Re: [R] enquiry

2012-08-03 Thread Erdal Karaca
Yep, you are right, this works: readCell - function(workbook, sheetName, i, j) { pos - getSheetPos(workbook, sheetName) readWorksheet(workbook, pos, startRow=i, endRow=i, startCol=j, endCol=j, header=FALSE)[[1]] } 2012/7/17 Rui Barradas ruipbarra...@sapo.pt Hello, Sorry, but I'm not at my

Re: [R] enquiry

2012-07-17 Thread Rui Barradas
Hello, Sorry, but I'm not at my computer and will be away from it for 2 or 3 days, so I can't install package XLConnect and see what's going on. Heve you tried the functions to get sheets first? (by number, maybe.) Rui Barradas Em 16-07-2012 22:30, Erdal Karaca escreveu: Just tried

Re: [R] enquiry

2012-07-16 Thread Rui Barradas
Hello, Try the following. install.packages(sos) # to install the package library(sos) # to load the package nto R session finFn(xlsx)# find it Have fun. Hope this helps, Rui Barradas Em 16-07-2012 06:17, Karan Anand escreveu: hi, i am new to r ,i have a xlsx

Re: [R] enquiry

2012-07-16 Thread Rui Barradas
Sorry, it's findFn(xlsx) And the first three hits ARE promising (they work). I use the second, package xlsx. Package XLConnect is more flexible if you want to do things to excel spreadsheets from R. Package xlsx is simpler if you just want to read them and then use R. Rui Barradas Em

Re: [R] enquiry

2012-07-16 Thread Erdal Karaca
Just tried XLConnect which seems to work without any problems... When defining this: wb - loadWorkbook(c:\\path-to-xls-file) readCell - function(sheet, row, col) { readWorksheet(wb, sheet, startRow=row, endRow=row, startCol=col, endCol=col, header=FALSE)[[1]] } then, calling the function like

[R] enquiry

2012-07-15 Thread Karan Anand
hi, i am new to r ,i have a xlsx data with me with 12 sheet in it and need to convert it to csv first and then need to convert it into time series ,so if u can pls guide me a little how to do it. Regards karan [[alternative HTML version deleted]]

[R] enquiry

2012-07-02 Thread Karan Anand
hi, i am new to using r .so if you can pls tell me how to read 1951-52 ,1952-52 date format in r [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read

Re: [R] enquiry

2012-07-02 Thread jim holtman
try this: as.Date('1951-52', format = %Y-%j) [1] 1951-02-21 On Mon, Jul 2, 2012 at 5:44 AM, Karan Anand anand.kara...@gmail.com wrote: hi,     i am new  to using r .so if you can pls  tell me how  to read 1951-52 ,1952-52     date format in r         [[alternative HTML version deleted]]

Re: [R] enquiry

2012-07-02 Thread jim holtman
holtman jholt...@gmail.com To: Karan Anand anand.kara...@gmail.com Cc: r-help@r-project.org Sent: Monday, July 2, 2012 9:04 AM Subject: Re: [R] enquiry try this: as.Date('1951-52', format = %Y-%j) [1] 1951-02-21 On Mon, Jul 2, 2012 at 5:44 AM, Karan Anand anand.kara...@gmail.com wrote

Re: [R] enquiry

2012-07-02 Thread arun
-project.org Sent: Monday, July 2, 2012 9:04 AM Subject: Re: [R] enquiry try this: as.Date('1951-52', format = %Y-%j) [1] 1951-02-21 On Mon, Jul 2, 2012 at 5:44 AM, Karan Anand anand.kara...@gmail.com wrote: hi,     i am new  to using r .so if you can pls  tell me how  to read 1951-52 ,1952-52

Re: [R] Enquiry about 2nd-order interactions survival analysis

2011-11-14 Thread Terry Therneau
David's answers were correct. You are looking deep into the code when there is no reason to to so. 1. h(t|(X=x,Z=z)) = exp(Beta0 + XZBeta1) Most statisticians will tell you that this is an unwise model. The reason is that if you replace X with X+1 the fit changes, which is almost never

[R] Enquiry on Vrtest

2011-05-28 Thread Chim Kaho
Hi there, I am currently working on my dissertation which is about testing the martingale hypothesis in the stock market using a methodology involving a range of variance ratio tests and multiple variance ratio tests. I contacted the author of a reference paper and I was told that the tests can

Re: [R] Enquiry on Vrtest

2011-05-28 Thread David Winsemius
On May 28, 2011, at 10:58 AM, Chim Kaho wrote: Hi there, I am currently working on my dissertation which is about testing the martingale hypothesis in the stock market using a methodology involving a range of variance ratio tests and multiple variance ratio tests. I contacted the author

[R] enquiry

2007-09-12 Thread ah06981
Dear R-help, I am trying to estimate a Cox model with nested effects basing on the minimization of the overall AIC; I have two frailties terms, both gamma distributed. There is a error message (theta2 argument misses) and I don?t understand why. I would like to know what I have wrong. Thank