[R] Converting numbers to and from raw

2009-05-15 Thread Stavros Macrakis
How can I convert an integer or double to and from their internal representation as raws of length 4 and 8? The following works for positive integers (including those represented as floats): # Convert integer (represented as integer or double) to sequence # of raw bytes, least-significant byte

[R] Memory size problems in R

2009-05-15 Thread Fernando José Nascimento Sebastião
Dear all, I have some problems how to increase memory in R. I tried to start R by calling e.g. :(in the Properties, Shortcut tab, Target field) Rgui.exe --max-mem-size=2Gb (Is this correct?) But the error message still continue: X-princomp(MAT2D.AltGeop61.90) Error: cannot allocate

Re: [R] Matrix package,solve() errors and crashes Please help

2009-05-15 Thread Surendar Swaminathan
Hello All, Please help me with this problem.I have been having this problem for over a month now and I could not find any information.I later realised that error is with MATRIX package. I am working on graph object using IGRAPH version 0.5.2-2 package wanted to do Bonacich Power. What I

Re: [R] About the efficiency of R optimization function

2009-05-15 Thread cls59
popo UBC wrote: Hi Charlie, Thank you so much for suggestions!! Actually, I used the optimization toolbox in MABLAB before and I even wrote some numerical optimization programs by myself. As far as I know, some commercial optimization softwares had already replaced L-BFGS-B by more

Re: [R] assign unique size of point in xyplot

2009-05-15 Thread Deepayan Sarkar
On Thu, May 14, 2009 at 12:14 PM, Garritt Page page2...@gmail.com wrote: Hello,I am using xyplot to try and create a conditional plot.  Below is a toy example of the type of data I am working with slevel - rep(rep(c(0.5,0.9), each=2, times=2), times=2) tlevel - rep(rep(c(0.5,0.9), each=4),

Re: [R] Graphical output format

2009-05-15 Thread cls59
baptiste auguie-2 wrote: Just a thought: There was recently a discussion here on the pgfSweave [1] driver --- it should be possible to use it in conjunction with XeTeX [2] to process the pgf output. Presumably there will be issues of alignment and spacing but at least arbitrary

Re: [R] assign unique size of point in xyplot

2009-05-15 Thread hadley wickham
On Thu, May 14, 2009 at 2:14 PM, Garritt Page page2...@gmail.com wrote: Hello,I am using xyplot to try and create a conditional plot.  Below is a toy example of the type of data I am working with slevel - rep(rep(c(0.5,0.9), each=2, times=2), times=2) tlevel - rep(rep(c(0.5,0.9), each=4),

[R] ggplot2: annotating plot with mathematical formulae

2009-05-15 Thread Paul Emberson
Hi, Is there a way of annotating a ggplot plot with mathematical formulae? I can do geom_text(aes(label=some text, ... but I can't do geom_text(aes(label=expression(x^{n-1}), ... It gives the error Error: geom_text requires the following missing aesthetics: label Is there a convenient

Re: [R] ggplot2: annotating plot with mathematical formulae

2009-05-15 Thread stephen sefick
how about this a - 1:10 b - 1:10 d - paste(x,^,{n-1}) qplot(a,b, xlab=expression(x^{n-1}))+geom_text(aes(4,8, label=d)) On Fri, May 15, 2009 at 10:02 PM, Paul Emberson em...@calidasoft.co.uk wrote: Hi, Is there a way of annotating a ggplot plot with mathematical formulae? I can do

Re: [R] About the efficiency of R optimization function

2009-05-15 Thread spencerg
You might get some information about what is available in R using the new RSiteSearch package. For example: library(RSiteSearch) ipm - RSiteSearch.function('interior point method') hits(ipm) # 39 SQP - RSiteSearch.function('SQP') hits(SQP) # 2 sqp - RSiteSearch.function('sequential

[R] (no subject)

2009-05-15 Thread Debbie Zhang
Dear R users, Does anyone know how to write a function involving derivative? i.e. I want to implementing Newton's method in R, so my function is something like x- x-y/y' I am not sure how to write y' in my function. Can anyone help? In addition, if I want to implementing newton's method

[R] problem with mle.stepwise

2009-05-15 Thread eariasca
Hello, I am getting some unexpected results when using mle.stepwise: # BEGIN require(wle) x1 = runif(100) x2 = runif(100) y = 3 + 2*x1 + rnorm(100) # so x1 is in the model, but not x2 mle.stepwise(y ~ x1 + x2, type = Backward) # Backward selection gets it right, the other

[R] anova(cph(..) output

2009-05-15 Thread pompon
Hello, I am a beginner in R and statistics, so my question may be trivial. Sorry in advance. I performed a Cox proportion hazard regression with 2 categorical variables with cph{design}. Then an anova on the results. the output is anova(cph(surv(survival, censor) ~ plant + leaf.age +

[R] Dickey-Fuller Tests with no constant and no trend

2009-05-15 Thread jbrukh
R has a Dickey-Fuller Test implementation (adf.test) that tests for unit roots in an autoregressive process with a constant and linear trend. Is there a DF implementation that doesn't use the constant or trend? Thanks, Jake. -- View this message in context:

<    1   2