[R] how to run Fleming-Harrington weighted log-rank test in R

2014-09-12 Thread Man Photo
Hi, I am looking for an R package that allows one to run the Fleming-Harrington weighted log-rank test with varying Rho and Gamma. Any help is appreciated. Thanks. [[alternative HTML version deleted]] __ R-help@r-project.org mailing list

Re: [R] how to run Fleming-Harrington weighted log-rank test in R

2014-09-12 Thread David Winsemius
On Sep 11, 2014, at 8:39 PM, Man Photo wrote: Hi, I am looking for an R package that allows one to run the Fleming- Harrington weighted log-rank test with varying Rho and Gamma. Any help is appreciated. Thanks. install.packages(sos) library(sos) findFn(Fleming-Harrington)

[R] Lines instead of points in a scatterplot

2014-09-12 Thread Angel Rodriguez
Dear subscribers, I have the following dataframe: aggr child65$decedad logit 1 [65,67) 0. 10 67 0. 2 [68,70) -0.06669137 3 [70,72) -0.71294981 4 [72,74) -0.59783700 5 [74,77) -1.08334482 6 [77,79)

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread Vivek Das
HI, Try to change with plot(aggr, type=l) see what happens? This should work -- Vivek Das On Fri, Sep 12, 2014 at 10:32 AM, Angel Rodriguez angel.rodrig...@matiainstituto.net wrote: Dear subscribers, I have the following

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread Angel Rodriguez
Thank you, Vivek, but it hasn�t worked. I've tryed type=o and type=h to no avail. Angel -Mensaje original- De: Vivek Das [mailto:vd4mm...@gmail.com] Enviado el: vie 12/09/2014 10:50 Para: Angel Rodriguez CC: R help Asunto: Re: [R] Lines instead of points in a scatterplot HI, Try

Re: [R] using pdf(file=) encount a Chinese garbled

2014-09-12 Thread PO SU
Tks, it works now , just needing some extra ajustment. -- PO SU mail: desolato...@163.com Majored in Statistics from SJTU At 2014-09-12 12:33:19, Jinsong Zhao jsz...@yeah.net wrote: On 2014/9/11 21:10, PO SU wrote: Dear expeRts, When i use the following codes:

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread peter dalgaard
The root cause is that column 1 is a factor. So what you get is really a set of parallel boxplots each based on one observation. plot.default() is one way out, but you may need to generate the x-axis labels yourself. I.e., x - factor(LETTERS[1:10]) y - rnorm(10) plot(x,y) plot.default(x,y)

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread Angel Rodriguez
Thank you Peter. plot.default works perfectly. I'm puzzled now with the first column of the dataframe aggr. aggr comes from: aggr-summarize(child65$benvii, by=child65$decedad, FUN=mean, na.rm=TRUE) If I write: aggr[,1] [1] [65,67) 67 [68,70) [70,72) [72,74) [74,77) [77,79) [79,81)

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread PIKAL Petr
Hi look at str(aggr) I bet you will find that your first column is factor and lines you see are from making a boxplot with your plot command. You can change it by various ways but I would prefer to change factor to numeric, which requires some regular expression. Here is one but I believe

Re: [R] Lines instead of points in a scatterplot

2014-09-12 Thread Angel Rodriguez
Thank you, Petr. I understand now. I thought the first column Peter was referring to in his email was 1 10 2 3 4 5 6 7 8 9 that appears when I write aggr. In facti, it is: [65,67) 67 [68,70)

[R] Error with RJDBC when trying dbUnloadDriver()

2014-09-12 Thread julian . bothe
Hello everyone, Hello Simon, I am starting to use RJDBC. When trying to unload the driver, I get an Error message - even when not connecting to any database. This issue has been reported before in 2011 (https://stat.ethz.ch/pipermail/r-sig-db/2011q4/001103.html ), and it was said that it's

Re: [R] Parliament Seats Graph

2014-09-12 Thread Jim Lemon
On Mon, 8 Sep 2014 10:22:03 PM Stefan Petersson wrote: Hi, Is there any package (or homegrown function) that can produce Parliament Seats Graph? I'm referring to the nice looking concentric half circles of colored seats as seen on Wikipedia (for example). I can pretty easily plot the

Re: [R] Parliament Seats Graph

2014-09-12 Thread Barry Rowlingson
On Fri, Sep 12, 2014 at 11:25 AM, Jim Lemon j...@bitwrit.com.au wrote: I can see how you would plot the points going from right to left (the easy way), by plotting the next point on the arc with the least increase in angle from the last point plotted. If this is the way you have worked out, I

Re: [R] Parliament Seats Graph

2014-09-12 Thread Stefan Petersson
Yes. That's correct. The main problem is to solve a matrix where the colSums and rowSums are known. Credits to dwinsem...@comcast.net for pointing out the function r2dtable to me. Just feed it with the known margins and the number of matrices You want. And Bob is Your uncle! Look at the thread

Re: [R] Parliament Seats Graph

2014-09-12 Thread Duncan Murdoch
On 12/09/2014, 7:18 AM, Barry Rowlingson wrote: On Fri, Sep 12, 2014 at 11:25 AM, Jim Lemon j...@bitwrit.com.au wrote: I can see how you would plot the points going from right to left (the easy way), by plotting the next point on the arc with the least increase in angle from the last point

Re: [R] Parliament Seats Graph

2014-09-12 Thread Barry Rowlingson
I've generalised Duncan's code: seats - function(N,M, r0=2.5){ radii - seq(r0, 1, len=M) counts - numeric(M) pts = do.call(rbind, lapply(1:M, function(i){ counts[i] - round(N*radii[i]/sum(radii[i:M])) theta - seq(0, pi, len = counts[i]) N - N -

Re: [R] Error with RJDBC when trying dbUnloadDriver()

2014-09-12 Thread Simon Urbanek
Julian, On Sep 12, 2014, at 6:03 AM, julian.bo...@elitepartner.de wrote: Hello everyone, Hello Simon, I am starting to use RJDBC. When trying to unload the driver, I get an Error message – even when not connecting to any database. This issue has been reported before in 2011

Re: [R] Parliament Seats Graph

2014-09-12 Thread Barry Rowlingson
Note if you are trying to compare parliament diagrams created with this code with images from wikipedia, the wikipedia images I tried are wrong. The Ukrainian one: http://en.wikipedia.org/wiki/Verkhovna_Rada shows two groups in red but the legend only has one red party, and the French Senate:

Re: [R] mice - undefined columns selected

2014-09-12 Thread David L Carlson
I'm copying the package maintainer who can probably give a more definite answer. I'm getting the same error on your data. I can get a subset of your data to run, eg: d.imp - mice(d[,c(1:2, 5:6)]) works, but d.imp - mice(d[,c(3:4, 7:8)]) fails. That suggests to me that the problem is with your

[R] 8 fast or 4 very fast cores?

2014-09-12 Thread Leif Ruckman
I am going to buy a new computer ( Dell workstation T5810 - Windows 8) to work with simulatons in R. Now I am asked what kind of processor I like and I was given two choices. 1. Intel Xeon E5-1620 v3 - 4 cores 3.7 GHz Turbo 2. Intel Xeon E5-2640 v3 - 8 cores 2.6 GHz Turbo I don't know what is

Re: [R] mice - undefined columns selected

2014-09-12 Thread Buuren, S. (Stef) van
Dear David, mice eliminates variables that are linearly dependent. Type imp$log To see which are removed, and why. You have three options: 1 forget about those remove variables since they don't carry additional information 2 don't use them as predictors, and they will be imputed (although not

Re: [R] How to test for open pdf file on Windows before calling cairo_pdf ?

2014-09-12 Thread Kevin Wright
What I finally ended up doing was using the file() command to see if I could open a writeable connection to a pdf, then closing the connection before opening the file with cairo_pdf. However, my whole effort may be pointless. The cairo_pdf() device is crashing R on Windows so often as to be

[R] cairo_pdf crashing R on Windows

2014-09-12 Thread Kevin Wright
I'm having trouble with cairo_pdf crashing R on Windows. How can I debug this? This is a exited abnormally type crash, so I can't drop into the browser and look at the call stack. Kevin -- Kevin Wright [[alternative HTML version deleted]]

Re: [R] cairo_pdf crashing R on Windows

2014-09-12 Thread Henrik Bengtsson
First try a newer version of R, e.g. most recent patched and/or devel version. If that doesn't help, record sessionInfo() before calling cairo_pdf() and before the crash. Try to find a minimal example and a minimal figure for which you can reproduce this on your setup. If it only occurs

Re: [R] cairo_pdf crashing R on Windows

2014-09-12 Thread Duncan Murdoch
On 12/09/2014 2:12 PM, Kevin Wright wrote: I'm having trouble with cairo_pdf crashing R on Windows. How can I debug this? This is a exited abnormally type crash, so I can't drop into the browser and look at the call stack. This is getting into R-devel territory, but if Henrik's suggestions

Re: [R-es] Fwd: SpatialPolygonsDataFrame

2014-09-12 Thread Francisco Rodríguez
Isabel, no s� si entiendo bien tu pregunta porque no s� como tienes los datos (si est�n en tablas distintas o en una misma tabla) En principio cuando creas pol�gonos, estos deben de estar identificados por un id o por un separador, hay varias formas de hacer esto. Para un problema que me hizo