[R] RBloomberg on R-2.12.0

2010-11-05 Thread Tolga I Uzuner
Dear R Users, Tried to install RBloomberg with R-2.12.0 and appears RDComclient has not been built for this version of R, so failed. I then tried to get RBloombergs' Java API version to work, but ran into problems with RJava which does not appear to exist for Windows. My platform is Windows XP

[R] Help with replacing a substring in a string

2010-07-19 Thread Tolga I Uzuner
Dear R Users, I am trying to replace a substring in a string with something else. For example: if we have abc.degg.hijk I would like to replace all the . with a SPACE to become abc degg hijk I have tried the replace.substring.wild function in the Hmisc package but get this error:

Re: [R] Help with replacing a substring in a string

2010-07-19 Thread Tolga I Uzuner
Actually, I think I got it, need to use gsub. From: Tolga I Uzuner Sent: 19 July 2010 12:11 To: 'r-help@r-project.org' Subject: Help with replacing a substring in a string Dear R Users, I am trying to replace a substring in a string with something else. For example: if we have abc.degg.hijk I

[R] RBloomberg for 2.11 ?

2010-04-30 Thread Tolga I Uzuner
Dear R Users, Is there a version of the Windows binary for RBloomberg that works with R 2.11 ? Thanks in advance, Tolga This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of

[R] Easy to use R interface into Macroeconomics data at the Fed, the IMF and Eurostat

2010-03-30 Thread Tolga I Uzuner
Dear R Users, Does anyone know if there is an easy to use interface for the macroeconomics databases of the Fed, Eurostat and the IMF ? Thanks in advance, Tolga Uzuner This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale

[R] Iterated cumulative sums of squares algorithm in R ?

2009-09-03 Thread Tolga I Uzuner
Dear R Users, Is the iterated cumulative sums of squares algorithm implemented in any package in R ? A simple search yields no results but perhaps it is named something else. Thanks in advance, Tolga This email is confidential and subject to important disclaimers and conditions including on

Re: [R] Executing an error prone function without stopping a script

2009-07-10 Thread Tolga I Uzuner
Many thanks ! Tolga -Original Message- From: Duncan Murdoch [mailto:murd...@stats.uwo.ca] Sent: 09 July 2009 23:49 To: Tolga I Uzuner Cc: r-help@r-project.org Subject: Re: [R] Executing an error prone function without stopping a script Tolga I Uzuner wrote: Dear R Users, I've used

[R] Executing an error prone function without stopping a script

2009-07-09 Thread Tolga I Uzuner
Dear R Users, I've used this a long time ago but have forgotten. Trawling aroung the various sources somehow does not lead me to it. How can I execute an error prone function without stopping a script if it goes wrong ? Thanks in advance, Tolga This email is confidential and subject to

[R] executing an error prone function without stopping a script

2009-07-09 Thread Tolga I Uzuner
Dear R Users, I've used this a long time ago but have forgotten. Trawling aroung the various sources somehow does not lead me to it. How can I execute an error prone function without stopping a script if it goes wrong ? Thanks in advance, Tolga This email is confidential and subject to

Re: [R] replacing elements of a zoo object

2008-12-18 Thread tolga . i . uzuner
Thanks Gabor. Just tried that... it didn't work for some reason, even though it also did not complain about an error this time. x[as.Date(2008-12-14)] 2008-12-14 NA x[as.Date(2008-12-14)]-1 x[as.Date(2008-12-14)] 2008-12-14 NA Regards, Tolga Tolga Uzuner

[R] replacing elements of a zoo object

2008-12-17 Thread tolga . i . uzuner
Dear R Users, I am trying to do something quite simple: replace the elements of a zoo object. For some reason, the following code does not seem to work. How can I replace the value for the 14th of Dec of 2008 in the zoo object x below with 1 (it is currently NA). x 2008-12-11 2008-12-12

[R] statistics on runs of numbers

2008-12-08 Thread tolga . i . uzuner
Dear R Users, Is there a package or some functionality in R which returns statistics on runs of numbers, i.e. series of numbers with similar qualities in a time series ? For example, the number of +ves,-ves, histograms on cumulations in runs, etc. ? Thanks in advance, Tolga Generally, this

Re: [R] statistics on runs of numbers

2008-12-08 Thread tolga . i . uzuner
Many thanks, Tolga Albyn Jones [EMAIL PROTECTED] 08/12/2008 17:16 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] statistics on runs of numbers rle(x) gives the run length encoding of x. rle(x0) or rle(sign(x)) will do this for positive and negative values of x. albyn

[R] recursive default argument error

2008-11-25 Thread tolga . i . uzuner
Dear R Users, I have a function foo in a script with default values for some of the parameters as follows: testparams=list(a=1,b=2,c=3) foo-function(x,y,testparams=testparams) x+y+testparams$a+testparams$b+testparams$c When I try to run foo(1,2), I get the following error:

Re: [R] recursive default argument error

2008-11-25 Thread tolga . i . uzuner
Many thanks Wacek, that is very helpful. Appreciate it. Regards, Tolga Wacek Kusnierczyk [EMAIL PROTECTED] 25/11/2008 10:51 To [EMAIL PROTECTED] cc R help [EMAIL PROTECTED] Subject Re: [R] recursive default argument error [EMAIL PROTECTED] wrote: Dear R Users, I have a function foo

[R] Problems with rbind

2008-11-15 Thread tolga . i . uzuner
Dear R Users, A recent update on base packages on my R installation has introduced a problem to my code which did not exist before the update. The offending function is rbind, which fails where it was working just fine before the update. I have two zoo objects, foo and bar, indexed by class

Re: [R] fine grain tick marks for zoo plots

2008-11-05 Thread tolga . i . uzuner
], labels = format(m[jan], %y), tcl = -0.7) Axis(side = 1, at = unique(as.Date(as.yearqtr(tt))), labels = FALSE) } Tolga I Uzuner/JPMCHASE 04/11/2008 14:16 To Gabor Grothendieck [EMAIL PROTECTED] cc r-help@r-project.org, [EMAIL PROTECTED] Subject Re: [R] fine grain tick marks for zoo

Re: [R] fine grain tick marks for zoo plots

2008-11-05 Thread tolga . i . uzuner
(as.yearqtr(tt))), labels = FALSE) } Tolga I Uzuner/JPMCHASE 04/11/2008 14:16 To Gabor Grothendieck [EMAIL PROTECTED] cc r-help@r-project.org, [EMAIL PROTECTED] Subject Re: [R] fine grain tick marks for zoo plotsLink Many thanks all. The following does the trick for me, taken out

[R] fine grain tick marks for zoo plots

2008-11-04 Thread tolga . i . uzuner
Dear R Users, I am trying to get plot.zoo to place monthy tickmarks/labels for a time series which spans daily data going back a bit over a year. Right now, I am getting only one tick mark on the x-axis for the beginning of 2008. How can I force plot.zoo to place more regular x-axis tick marks

Re: [R] fine grain tick marks for zoo plots

2008-11-04 Thread tolga . i . uzuner
Many thanks all. The following does the trick for me, taken out of the vignette: plotmonths-function(z,...){ plot(z,xaxt=n,...) tt - time(z) m - unique(as.Date(as.yearmon(tt))) jan - format(m, %m) == 01 mlab - substr(months(m[!jan]), 1, 1) Axis(side = 1, at = m[!jan], labels = mlab, tcl =

Re: [R] smooth function advice

2008-10-31 Thread tolga . i . uzuner
)) # create zoo object for return } } Tolga I Uzuner/JPMCHASE 30/10/2008 15:36 To r-help@r-project.org cc Subject smooth function advice Dear R Users, I am looking for a smoothing function with the following characteristics for a time series of data: - at each date, should only

[R] smooth function advice

2008-10-30 Thread tolga . i . uzuner
Dear R Users, I am looking for a smoothing function with the following characteristics for a time series of data: - at each date, should only use data up to that date (so, right aligned and not centered) - should return a smoothed series of length equal to the original time series: -

[R] right aligning loess

2008-10-24 Thread tolga . i . uzuner
Dear R Users, Does anyone know if I can somehow right align the loess function, so it only uses data points up to a certain date, and not around it ? Sort of like rollmean(...align=right) in the rollmean function. Thanks, Tolga Generally, this communication is for informational purposes

[R] snow/rmpi using deinompi question

2008-10-03 Thread tolga . i . uzuner
Dear R Users, I have set-up: - R 2.7.2 - rmpi using deinoMPI, and - snpw on two Windows XP machines. I would like to use the makeCluster(...,MPI) command to create a cluster. Assume the machines are A and B. I would like the master to be on A and the nodes to be on B. How do I achieve this

[R] error message documentation: Error: no function to return from, jumping to top level

2008-10-02 Thread tolga . i . uzuner
Dear R Users, Are error messages in R documented somewhere ? I am getting the following error message and would like to track down what it means and which specific routine triggers it: Error: no function to return from, jumping to top level Once I figure out which snippet of code triggers it,

Re: [R] error message documentation: Error: no function to return from, jumping to top level

2008-10-02 Thread tolga . i . uzuner
Many thanks, that is very helpful Peter. Regards, Tolga Peter Dalgaard [EMAIL PROTECTED] 02/10/2008 14:24 To Duncan Murdoch [EMAIL PROTECTED] cc [EMAIL PROTECTED], r-help@r-project.org Subject Re: [R] error message documentation: Error: no function to return from, jumping to top level

[R] cryptic error message: Error in embed(y, lag) : wrong embedding dimension

2008-10-01 Thread tolga . i . uzuner
Dear R Users, I've been hit with a cryptic error message: Error in embed(y, lag) : wrong embedding dimension My configuration is: - R 2.7.2 - Windows XP Sp2 Google returns nothing for this. Could someone suggest what this might mean ? Thanks in advance, Tolga Generally, this communication

[R] snow: Problems with cluster

2008-09-30 Thread tolga . i . uzuner
Dear R Users, I have come across a problem with the snow package across two PCs recently. The error message is : Error in unserialize(node$con) : error reading from connection I was wondering if anyone else has ever come across this and if there are any suggestions as to what it may mean

[R] rpvm for windows anyone ?

2008-09-30 Thread tolga . i . uzuner
Dear R Users, Is there a version of rpvm available for windows ? I have recently had some problems with snow using SOCKS and was considering PVM as an alternative. Thanks in advance, Tolga Generally, this communication is for informational purposes only and it is not intended as an offer or

[R] prblems changing directory in mpi snow clusters

2008-09-30 Thread tolga . i . uzuner
Dear R Users, I am attempting to use snow with rmpi. My configuration is: - R Version 2.7.2, rmpi - RMPI 0.5-6 - DeinoMPI 1.1.0 - Windows Xp SP2 I can sucessfully create a cluster and execute simple commands but for some reason, I cannot change the working directory in my nodes.

Re: [R] prblems changing directory in mpi snow clusters

2008-09-30 Thread tolga . i . uzuner
Please ignore, my fault, I was placing the clusterCall incorrectly. Should simply be clusterCall(cl,setwd,C:/) Regards, Tolga Tolga I Uzuner/JPMCHASE 30/09/2008 11:11 To r-help@r-project.org cc Subject prblems changing directory in mpi snow clusters Dear R Users, I am attempting

[R] Does R have an inverse empirical cumulative distribution function ?

2008-09-26 Thread tolga . i . uzuner
Dear R Users, Does R have an inverse empirical cumulative distribution function, something one can use to invert ecdf ? Thanks in advance, Tolga Generally, this communication is for informational purposes only and it is not intended as an offer or solicitation for the purchase or sale of any

Re: [R] Does R have an inverse empirical cumulative distribution function ?

2008-09-26 Thread tolga . i . uzuner
Daft of me. Yes. Many thanks, Tolga Peter Dalgaard [EMAIL PROTECTED] 26/09/2008 12:14 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] Does R have an inverse empirical cumulative distribution function ? [EMAIL PROTECTED] wrote: Dear R Users, Does R have an inverse

[R] Error: bad value

2008-09-11 Thread tolga . i . uzuner
Dear R Users, I am getting a strange error, also relayed by Jose Quesada about a year ago. As below, in his message, I get Error: bad value to whatever I enter into the R console. My configuration is: - Windows XP SP2 - R 2.7.2 Has this problem been tracked down to a specific package ? I am

Re: [R] Information on the number of CPU's

2008-09-10 Thread tolga . i . uzuner
Many thanks Luke, much appreciated, Tolga Luke Tierney [EMAIL PROTECTED] 09/09/2008 21:21 To [EMAIL PROTECTED] cc Prof Brian Ripley [EMAIL PROTECTED], r-help r-help@r-project.org Subject Re: [R] Information on the number of CPU's The wmic command line utility can also be used to query

[R] cluster/snow question

2008-09-10 Thread tolga . i . uzuner
Dear R Users, Apologies for a somewhat basic cluster question. I am trying to come to grips with how variables are instantiated within the environment of each node in a cluster. When I run the following code, I expect to see the variable x in the environment of each node, but fail to do so.

Re: [R] cluster/snow question

2008-09-10 Thread tolga . i . uzuner
Many thanks. Yes, weird, somehow ls does not show the variables in the environment, even though they are clearly there. It would be nice to understand why that is the case, just to be clear about what is going on. Thanks Markus, Tolga Markus Schmidberger [EMAIL PROTECTED] 10/09/2008 10:45

Re: [R] cluster/snow question

2008-09-10 Thread tolga . i . uzuner
Many thanks, that is very helpful. Tolga Luke Tierney [EMAIL PROTECTED] 10/09/2008 14:05 To [EMAIL PROTECTED] cc [EMAIL PROTECTED], r-help@r-project.org Subject Re: [R] cluster/snow question ls() looks in its calling environment, which in this case would be the internals of the snow

Re: [R] cluster/snow question

2008-09-09 Thread tolga . i . uzuner
Hi Markus, Many thanks. Is the cluster variable you mention below available in the environment of the nodes ? Specifically, within that environment, how could one identify the rank of that specific node ? My code would use that information to partition the problem. Thanks, Tolga Markus

[R] Information on the number of CPU's

2008-09-09 Thread tolga . i . uzuner
Dear R Users, I am on Windows XP SP2 platform, using R version 2.7.2 . I was wondering if there is a way to find out, within R, the number of CPU's on my machine ? I would use this information to set the number of nodes in a cluster, depending on the machine. Sys.info() and .Platform do not

Re: [R] cluster/snow question

2008-09-09 Thread tolga . i . uzuner
Understood, that's what I'll do. I'm thinking of exporting the number of nodes to all nodes and passing in the node rank as 1:nonodes through clusterApply. Thanks all, Tolga Luke Tierney [EMAIL PROTECTED] 09/09/2008 20:11 To [EMAIL PROTECTED] cc [EMAIL PROTECTED], r-help@r-project.org

Re: [R] Information on the number of CPU's

2008-09-09 Thread tolga . i . uzuner
Many thanks, that's very helpful. Regards, Tolga - Original Message - From: Prof Brian Ripley [EMAIL PROTECTED] Sent: 09/09/2008 20:57 CET To: Tolga Uzuner Cc: r-help@r-project.org Subject: Re: [R] Information on the number of CPU's On Tue, 9 Sep 2008, [EMAIL PROTECTED] wrote: Dear

[R] RMPI Question

2008-09-08 Thread tolga . i . uzuner
Dear R Users, I have a relatively simple rmpi question. My configation is: - R version 2.7.2 - rmpi 0.5-6 - Deino MPI 1.1.0 - Windows XP SP2 After succesfully spawning slaves, I am trying to assign values to variables in the environment of each slave and run some simple calcs. This appears

Re: [R] RMPI Question

2008-09-08 Thread tolga . i . uzuner
Dear Martin, Many thanks. This is very useful, much appreciated. Regards, Tolga Martin Morgan [EMAIL PROTECTED] 08/09/2008 19:08 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] RMPI Question Hi Tolga -- [EMAIL PROTECTED] writes: Dear R Users, I have a relatively

[R] cluster/snow question

2008-09-08 Thread tolga . i . uzuner
Dear R Users, I am attempting to use the snow package for clustering. Is there a way to identfy, in the environment of each node, a rank for that node and also, the total size of the cluster ? By way of analogy, I am looking for the functions in snow equivalent to mpi.comm.rank() and

Re: [R] grangertest/lmtest ... what am I doing wrong ?

2008-08-18 Thread tolga . i . uzuner
Many thanks Achim, much appreciated. A simple, naive implementation of granger testing (see the R code below) which does not explicitly accont for collinearities appears to give the same results as the implementation in MSBVAR, so presumably, they do something similar. granger -function(d,

[R] grangertest/lmtest ... what am I doing wrong ?

2008-08-17 Thread tolga . i . uzuner
Dear Achim, R Users, What am I doing wrong in this example ? a-zoo(rnorm(100),order.by=1:100) b-lag(a) regr-na.exclude(merge(a,b)) plot(regr) grangertest(regr[,1],regr[,2],3) a-zoo(rnorm(100),order.by=1:100) b-lag(a) regr-na.exclude(merge(a,b)) plot(regr) grangertest(regr[,1],regr[,2],3)

Re: [R] grangertest/lmtest ... what am I doing wrong ?

2008-08-17 Thread tolga . i . uzuner
Hi Gabor, Perhaps, I should have been clearer. In the subject like, I put grangertest/lmtest to indicate the grangertest function in the lmtest package. Later in the example, I am specifically talking about granger.test in the MSBVAR package (which is not failing, as in the example at the

Re: [R] which alternative tests instead of AIC/BIC for choosing models

2008-08-14 Thread tolga . i . uzuner
TRUE FALSE 2 TRUE TRUE $label [1] (Intercept) 1 2 $size [1] 2 2 3 $Cp [1] 38.53367 8490.553273.0 Tolga I Uzuner/JPMCHASE 13/08/2008 17:33 To r-help@r-project.org cc Subject which alternative tests instead of AIC/BIC for choosing models Dear R Users

Re: [R] which alternative tests instead of AIC/BIC for choosingmodels

2008-08-14 Thread tolga . i . uzuner
(as.matrix(regr3[,-1]),regr3[,1],method=c(Cp)) $which 1 2 1 FALSE TRUE 1 TRUE FALSE 2 TRUE TRUE $label [1] (Intercept) 1 2 $size [1] 2 2 3 $Cp [1] 38.53367 8490.553273.0 Tolga I Uzuner/JPMCHASE 13/08/2008 17:33 To r-help@r-project.org cc Subject which

Re: [R] Senging commands to the GUI in Windows through a script

2008-08-13 Thread tolga . i . uzuner
Cool, many thanks Henrik. Tolga Henrik Bengtsson [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 13/08/2008 02:03 To [EMAIL PROTECTED] cc Prof Brian Ripley [EMAIL PROTECTED], r-help@r-project.org Subject Re: [R] Senging commands to the GUI in Windows through a script With AutoIt

[R] problems with packages tseries and robustbase

2008-08-13 Thread tolga . i . uzuner
Dear R Users, Is there a known problem with downloading packages robustbase and tseries from the UK CRAN website ? Thanks in advance, Tolga = R version 2.7.1 (2008-06-23) Copyright (C) 2008 The R Foundation for Statistical Computing ISBN

Re: [R] problems with *downloading* packages tseries and robustbase

2008-08-13 Thread tolga . i . uzuner
Hi, It may be a problem with the mirror and my location. However, I should have added that the following packages had no problems installing from that mirror and location, which is why I suspected it was something more. RBloomberg strucchange car lmtest nlme corrgram RODBC MSBVAR xtable vars

Re: [R] which alternative tests instead of AIC/BIC for choosing models

2008-08-13 Thread tolga . i . uzuner
Many thanks John, appreciate the advice, Tolga John C Frain [EMAIL PROTECTED] 13/08/2008 18:51 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] which alternative tests instead of AIC/BIC for choosing models My initial idea would be to forget about AIC and BIC, ask the

Re: [R] which alternative tests instead of AIC/BIC for choosing models

2008-08-13 Thread tolga . i . uzuner
0.001681389 0.954859493 leaps(as.matrix(regr3[,-1]),regr3[,1],method=c(Cp)) $which 1 2 1 FALSE TRUE 1 TRUE FALSE 2 TRUE TRUE $label [1] (Intercept) 1 2 $size [1] 2 2 3 $Cp [1] 38.53367 8490.553273.0 Tolga I Uzuner/JPMCHASE 13/08/2008 17:33 To r-help@r

[R] Senging commands to the GUI in Windows through a script

2008-08-12 Thread tolga . i . uzuner
Dear R Users, How can I send commands to the R GUI from within a R script in Microsoft Windows ? I am trying to get the windows within the R GUI to Tile after I draw a graph. Thanks in advance, Tolga Generally, this communication is for informational purposes only and it is not intended as an

Re: [R] Senging commands to the GUI in Windows through a script

2008-08-12 Thread tolga . i . uzuner
OK thanks, Tolga Prof Brian Ripley [EMAIL PROTECTED] 12/08/2008 12:46 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] Senging commands to the GUI in Windows through a script On Tue, 12 Aug 2008, [EMAIL PROTECTED] wrote: Dear R Users, How can I send commands to the R GUI

[R] MUSIC (Multiple Signal Classification) in R

2008-08-08 Thread tolga . i . uzuner
Dear R Users, Is there an existing package which implements the MUSIC (Multiple Signal Classification) Algorithm in R ? MUSIC is described here: http://en.wikipedia.org/wiki/Multiple_signal_classification Thanks in advance, Tolga Generally, this communication is for informational purposes

[R] Long Range Dependence: Hurst exponent estimation

2008-08-04 Thread tolga . i . uzuner
Dear R Users, Can anyone point me to a package for R vrsion 2.7.1 which implements some Hurst exponent estimation methods ? Thanks in advance, Tolga Generally, this communication is for informational purposes only and it is not intended as an offer or solicitation for the purchase or sale of

[R] an interesting finding on Hurst exponent estimation from fSeries

2008-08-04 Thread tolga . i . uzuner
Dear R Users, I am using code from the following links to do Hurst exponent estimation. link: http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php?rev=1root=rmetricsview=rev file: LongRangeDependence.R Take a look at the following run: x-(cos((1:200)/10)) rsFit(diff(x,15))@hurst$H [1]

Re: [R] Long Range Dependence: Hurst exponent estimation

2008-08-04 Thread tolga . i . uzuner
Thanks Gary. That package is a bit weird. When one installs and loads it up, you don't actually get any of those functions. One has to go to the following link: http://r-forge.r-project.org/plugins/scmsvn/viewcvs.php?rev=1root=rmetricsview=rev and then download and source the file

[R] normalised/transformed regressions

2008-07-22 Thread tolga . i . uzuner
Dear R Users, Are there any packages in R which carries out a normalisation to variables as follows: - find the empirical distribution function, using perhaps ecdf - use the empirical distribution function to transform the variables into a series between 0 and 1 - use this series to map the

Re: [R] normalised/transformed regressions

2008-07-22 Thread tolga . i . uzuner
Hi Greg, First of all, many thanks for your detailed response. I was trying to achieve robustness in the regressions without making any assumptions about any transformations that might be needed, as I have no prior apart from realised. This seemed like a neat way of doing it, but there may be

Re: [R] normalised/transformed regressions

2008-07-22 Thread tolga . i . uzuner
Many thanks, let me find that, Tolga Greg Snow [EMAIL PROTECTED] 22/07/2008 18:01 To [EMAIL PROTECTED] [EMAIL PROTECTED] cc r-help@r-project.org r-help@r-project.org Subject RE: [R] normalised/transformed regressions There is a whole taskview on CRAN devoted to robust statistics

[R] Non-linearly constrained optimisation

2008-07-19 Thread tolga . i . uzuner
Dear R Users, I am looking for some guidance on setting up an optimisation in R with non-linear constraints. Here is my simple problem: - I have a function h(inputs) whose value I would like to maximise - the 'inputs' are subject to lower and upper bounds - however, I have some further

[R] creating names for lists

2008-07-18 Thread tolga . i . uzuner
Dear R Users, How can I create names for lists within a function where the name itself is a function of several variables ? a-1 b-2 paste(a,b) [1] 1 2 foo-list(paste(a,b)=3) = DOES NOT WORK Error: unexpected '=' in foo-list(paste(a,b)= eval(paste(a,b)) [1] 1 2

Re: [R] creating names for lists

2008-07-18 Thread tolga . i . uzuner
Many thanks, much appreciated. Henrique Dallazuanna [EMAIL PROTECTED] 18/07/2008 15:11 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] creating names for lists Try: foo - list(3) names(foo) - paste(a, b) On Fri, Jul 18, 2008 at 11:03 AM, [EMAIL PROTECTED] wrote: Dear R

[R] Landscape mode for pdf

2008-07-18 Thread tolga . i . uzuner
Dear R Users, I would like to get the pdf() command to create graphics in landscape mode, as I am plotting 8 graphs in 2 rows and 4 columns. This is being generated for an a4 printer (so I also use the paper=a4 command). Is there a way I can ask pdf() to generate the document in landscape mode

Re: [R] Landscape mode for pdf

2008-07-18 Thread tolga . i . uzuner
Ah... obvious isn't it ? As always. Many thanks, Tolga jim holtman [EMAIL PROTECTED] 18/07/2008 17:30 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] Landscape mode for pdf pdf(file=..., width=10, height=8) On Fri, Jul 18, 2008 at 11:04 AM, [EMAIL PROTECTED] wrote: Dear

[R] Supressing printing from a function: ecdf

2008-07-15 Thread tolga . i . uzuner
Dear R Users, I am trying to suppress the information printed by the ecdf function during an assignment. Various alternatives have failed me so far: a=summary(ecdf(rnorm(100)))[1st Qu.] Empirical CDF:100 unique values with summary invisible(a=summary(ecdf(rnorm(100)))[1st Qu.]) Empirical

Re: [R] Supressing printing from a function: ecdf

2008-07-15 Thread tolga . i . uzuner
Many thanks all for the response, this worked. Hi Martin, the verbose recommendation below would be very useful if this could be considered for a future release of stats/ecdf. Regards, Tolga Ivar Herfindal [EMAIL PROTECTED] 15/07/2008 10:38 Please respond to [EMAIL PROTECTED] To Patrick

[R] options() question for displaying numbers in the GUI

2008-07-14 Thread tolga . i . uzuner
Dear R Users, I would like the R GUI to display numbers with comma separators, i.e. 1,000,000.00 instead of 100 Is there a flag in option() for this behaviour. A google/RSiteSearch has not revealed anything but perhaps I have missed it. Thanks in advance, Tolga Generally, this

Re: [R] options() question for displaying numbers in the GUI

2008-07-14 Thread tolga . i . uzuner
Hi Henrique, Many thanks. That seems to work for individual numbers passed in as the first argument. Would anyone know of a way to get things to print this way by default all the time in the GUI ? Setting a big.mark option through options does not seem to do it. prettyNum(100.00,

Re: [R] Automatic placement of Legends

2008-07-09 Thread tolga . i . uzuner
Many thanks. Still, if anyone knows of an automated way of achieving this result, I would appreciate hearing about it. Tolga Boks, M.P.M. [EMAIL PROTECTED] 08/07/2008 20:45 To [EMAIL PROTECTED], r-help@r-project.org cc Subject RE: [R] Automatic placement of Legends You may want to

Re: [R] Automatic placement of Legends

2008-07-09 Thread tolga . i . uzuner
Many thanks all, Tolga Frank E Harrell Jr [EMAIL PROTECTED] 09/07/2008 12:03 To Jim Lemon [EMAIL PROTECTED] cc [EMAIL PROTECTED], r-help@r-project.org Subject Re: [R] Automatic placement of Legends Jim Lemon wrote: On Tue, 2008-07-08 at 19:31 +0100, [EMAIL PROTECTED] wrote: Dear

[R] Automatic placement of Legends

2008-07-08 Thread tolga . i . uzuner
Dear R-Users, I am looking for a way to get legends placed automagically in an empty spot on a graph. Additional complication comes through my useage of multiple graphs on the same plot through mfrow. Is there a way to achieve this in R ? I have legends for each of the sub-plots. Many

[R] Sorting a list

2008-07-07 Thread tolga . i . uzuner
Dear R Users, A bit of a simple question, but I could not find the answer thru google (sorting lists r cran,how can i sort a list r cran) or RSiteSearch... how can I sort a list ? One imagines something like sort.list would do the job, but that's not the one. foo-list(a=10,b=2,c=3)

Re: [R] Problem with strucchange package

2008-07-04 Thread tolga . i . uzuner
Hi Achim, First of all, thanks for the strucchange package. It's very useful. Looking forward to the zoo changes. Tolga Achim Zeileis [EMAIL PROTECTED] 02/07/2008 20:56 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] Problem with strucchange package On Wed, 2 Jul 2008,

Re: [R] Problem with strucchange package

2008-07-03 Thread tolga . i . uzuner
Many thanks, much appreciated. Tolga Achim Zeileis [EMAIL PROTECTED] 02/07/2008 20:56 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] Problem with strucchange package On Wed, 2 Jul 2008, [EMAIL PROTECTED] wrote: Dear R Users, I am attempting to use the strucchange

[R] Optimal lag selection in Granger Causality tests

2008-07-02 Thread tolga . i . uzuner
Dear R Users, Can someone point me to a R package which will help me optimally choose a lag for Granger Causality testing ? Many thanks in advance, Tolga Generally, this communication is for informational purposes only and it is not intended as an offer or solicitation for the purchase or sale

Re: [R] Optimal lag selection in Granger Causality tests

2008-07-02 Thread tolga . i . uzuner
First of all, I was not aware of the RSiteSearch function. Cool. Thanks for that. That having been said, I could not find anything here that helps with optimal lag selection. I can see: - grangertest, - granger.test and - the causality functions which actually implement the tests, but

[R] Plotting three time series on the same graph

2008-06-30 Thread tolga . i . uzuner
Dear R Users, I would like to plot three time series on the same graph, two axis on the left and one axis on the right. The time series that I am graphing on the left do not share a similar scale: one has a range of 1:100 and the other a range of 25000:7. How can I display the tick marks

Re: [R] Plotting three time series on the same graph

2008-06-30 Thread tolga . i . uzuner
set of tick marks in red placed further to the left so that the tick marks and axis identifiers do not sit on top of each other ? Many thanks in advance, Tolga [attachment plot3timeseries.png deleted by Tolga I Uzuner/JPMCHASE] Generally, this communication is for informational purposes

Re: [R] Plotting three time series on the same graph

2008-06-30 Thread tolga . i . uzuner
in red placed further to the left so that the tick marks and axis identifiers do not sit on top of each other ? Many thanks in advance, Tolga [attachment plot3timeseries.png deleted by Tolga I Uzuner/JPMCHASE

Re: [R] Plotting three time series on the same graph

2008-06-30 Thread tolga . i . uzuner
Thanks Gabor, this seems to work: ## plot with left and right axes ## modified from http://www.mayin.org/ajayshah/KB/R/html/g6.html set.seed(1) z - zoo(cbind(A = cumsum(rnorm(100)), B = cumsum(rnorm(100, mean = 0.2 opar - par(mai = c(.8, .8, .2, .8)) plot(z[,1], type = l, xlab = X axis

[R] Converting the results of granger.test into a matrix

2008-06-28 Thread tolga . i . uzuner
Dear R Users, The granger.test command in the MSBVAR package estimates all possible bivariate Granger causality tests for m variables. If one passes a data frame with 3 rows, it returns 6 granger tests in two rows, one for the F-statistic and another for the p-value. For example:

[R] Yule Kendall resistant measure of skewness

2008-06-27 Thread tolga . i . uzuner
Dear R Users, Is anyone aware of a package which calculates the Yule Kendall resistant (to errors,outliers) measure of skewness ? An easy calculation to perform, but was just wondering if a package exists (as the contents of that package would probably include other cool things I would also be

Re: [R] Yule Kendall resistant measure of skewness

2008-06-27 Thread tolga . i . uzuner
Dear Jorge, Many thanks, this is great. Tolga Jorge Ivan Velez [EMAIL PROTECTED] 27/06/2008 18:11 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] Yule Kendall resistant measure of skewness Dear Tolga, See equation 2.6 here. Also try this: # Yule Kendall resistant

[R] How can I execute a .R/script file

2008-06-19 Thread tolga . i . uzuner
Dear R-Users, I've written a number of functions in a .R/script file. I would like to call those functions from another script file. How can I execute all the code in a script file so that the functions are available for use in my other script file ? I have tried help.search(script) and

Re: [R] How can I execute a .R/script file

2008-06-19 Thread tolga . i . uzuner
Ah.. It is source() ...apologies for the waste of time, Tolga Tolga I Uzuner/JPMCHASE 19/06/2008 20:11 To r-help@r-project.org cc Subject How can I execute a .R/script file Dear R-Users, I've written a number of functions in a .R/script file. I would like to call those functions from

Re: [R] How can I execute a .R/script file

2008-06-19 Thread tolga . i . uzuner
Many thanks all, Tolga Jorge Ivan Velez [EMAIL PROTECTED] 19/06/2008 20:19 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] How can I execute a .R/script file Hi Tolga, See ?source HTH, Jorge On Thu, Jun 19, 2008 at 3:11 PM, [EMAIL PROTECTED] wrote: Dear R-Users,

[R] Regresions based on Empirical transformations and varying distributions

2008-06-19 Thread tolga . i . uzuner
Dear R-users, This is partially a R question and partially general econometrics. I have three time series which are somewhat dissimilar: plotting their histograms indicates that they do not come from the same distribution, never mind a normal distribution. I wish to predict the first as a

[R] Replacing values in a zoo object

2008-06-17 Thread tolga . i . uzuner
Dear R Users, I am trying to replace the value of one row in a single column zoo object. I try the following, but it does not seem to work. Could someone explain to me how I can either replace the value for this row or just delete the row entirely ? Many thanks in advance, Tolga

Re: [R] Replacing values in a zoo object

2008-06-17 Thread tolga . i . uzuner
Cool many thanks, Tolga Gabor Grothendieck [EMAIL PROTECTED] 17/06/2008 14:30 To [EMAIL PROTECTED] cc r-help@r-project.org Subject Re: [R] Replacing values in a zoo object See ?window.zoo library(chron) z - zoo(1:3, chron(11:13)) z 01/12/70 01/13/70 01/14/70 12

[R] Problems with Cochrane-Orcutt procedures

2008-06-17 Thread tolga . i . uzuner
Hi John, Hi Folks/Prof. Fox, I found some code John Fox had written sometime back on the Cochrane-Orcutt and Prais procedures here: https://stat.ethz.ch/pipermail/r-help/2002-January/017774.html I thought I would try it out and get the following errors below. Was wondering if anyone had any

Re: [R] Problems with Cochrane-Orcutt procedures

2008-06-17 Thread tolga . i . uzuner
Sure, I can imagine GLS is a much better way to deal with this. I guess I was looking at this because I did try GLS but got exactly the same results as LM and I just wanted to be sure. I did debug the code in https://stat.ethz.ch/pipermail/r-help/2002-January/017774.html and the offending

Re: [R] Problems with Cochrane-Orcutt procedures

2008-06-17 Thread tolga . i . uzuner
Sure, of course. And thanks for looking John. Here is the entire data: regrCMS a b 09/20/07 26.084 28.40 09/21/07 22.458 28.90 09/24/07 21.297 29.25 09/25/07 21.733 29.40 09/26/07 21.319 28.75 09/27/07 22.507 28.85 09/28/07 19.571 28.90 10/01/07 21.961 29.00 10/02/07 21.729

Re: [R] Problems with Cochrane-Orcutt procedures

2008-06-17 Thread tolga . i . uzuner
Aha ! I think this is it. You are using a data frame, and I was using zoo for the regrCMS object. When I cast it into a data frame, it then works ! I guess it would be cool to understand why it doesn't work as a zoo object, but no matter. Thanks John, Tolga regrCMS-as.data.frame(regrCMS)

[R] col.names ?

2008-06-06 Thread tolga . i . uzuner
Dear R Users, A bit of an elementary question, but somehow, I haven't been able to figure it out. I'd like to changes the column names of a data frame, so I am looking for something like col.names (as in row.names). Could someone please show me how to change the column names of a data frame ?

Re: [R] col.names ?

2008-06-06 Thread tolga . i . uzuner
Many thanks to everyone who replied, Tolga William Pepe [EMAIL PROTECTED] 06/06/2008 20:52 To [EMAIL PROTECTED], r-help@r-project.org cc Subject RE: [R] col.names ? As a very simple example: TolgaData-data.frame(A=c(1,2),B=c(3,4)) names(TolgaData )- c( newA, newB ) TolgaData

  1   2   >