[R] confidence interval around Aalen-Johansen if no events

2023-09-06 Thread Andreas Leha
Hi all, I'd like to calculate confidence intervals around Aalen-Johansen estimates at given time points. And later I'd like to be able to compare the Aalen-Johansen estimates at given time points between groups. My problem is, that there are no events recorded. So my question is: Does anyone kno

Re: [R] PSOCK cluster and renice

2017-12-03 Thread Andreas Leha
: As a workaround, you can use: > > cl <- future::makeClusterPSOCK(2L, rscript = c("nice", > "--adjustment=10", file.path(R.home("bin"), "Rscript"))) > > which is backward compatible with parallel::makePSOCKcluster() but > provides y

[R] PSOCK cluster and renice

2017-12-03 Thread Andreas Leha
Hi all, Is it possible to use the 'renice' option together with parallel clusters of type 'PSOCK'? The help page for parallel::makeCluster is not specific about which options are supported on which types and I am getting the following message when passing renice = 19 : > cl <- parallel::makeClus

Re: [R] encoding/locale problem with ssh -X

2017-06-23 Thread Andreas Leha
replicate this with ... > > x11(type="Xlib") > library(grid) > convertHeight(stringDescent("größe"), "in") > > ... on R 3.2.5, but not on, e.g., R 3.4.0 (just running R locally in > both cases). > > Paul > > On 21/06/17 20:05, Andrea

[R] encoding/locale problem with ssh -X

2017-06-21 Thread Andreas Leha
Hi all, I am struggling with remote R sessions and a (I suspect) locale related encoding problem: Using the X11 device (X11forwarding enabled), whenever I try to plot something containing umlauts using ggplot2, I am seeing sth like , | Error in grid.Call(L_stringMetric, as.graphicsAnnot(x$la

Re: [R] why must a named colClasses in read.table be in correct order

2015-07-08 Thread Andreas Leha
chr "x" > > ## Does not work with utils::read.table(), but with patch > data <- read.table(textConnection(kkk), >sep="\t", >header = TRUE, >colClasses = rev(colClasses)) > str(data) > ### &#

Re: [R] why must a named colClasses in read.table be in correct order

2015-07-08 Thread Andreas Leha
lClasses) to column > names, if they exists. > > /Henrik > (author of R.filesets) > > On Wed, Jul 8, 2015 at 5:41 PM, Andreas Leha > wrote: >> Hi all, >> >> Apparently, the colClasses argument to read.table needs to be in the >> order of the columns *

[R] why must a named colClasses in read.table be in correct order

2015-07-08 Thread Andreas Leha
Hi all, Apparently, the colClasses argument to read.table needs to be in the order of the columns *even when it is named*. Why is that? And where would I find it in the documentation? Here is a MWE: --8<---cut here---start->8--- kkk <- c("a\tb", "3.

Re: [R] filename of current device

2014-05-19 Thread Andreas Leha
On 18/05/2014 18:08, Prof Brian Ripley wrote: > On 14/05/2014 23:04, Andreas Leha wrote: >> Hi all, >> >> how do I find out about the filename, the currently open (let's say pdf) >> device is writing to? >> >> If I find 'dev.cur()' returnin

Re: [R] filename of current device

2014-05-14 Thread Andreas Leha
Hi David, David Winsemius writes: > On May 14, 2014, at 3:44 PM, Andreas Leha wrote: > >> Hi David, >> >> Thank you for following up on that. >> >> David Winsemius writes: >> >>> On May 14, 2014, at 3:04 PM, Andreas Leha wrote: >&

Re: [R] filename of current device

2014-05-14 Thread Andreas Leha
Hi David, Thank you for following up on that. David Winsemius writes: > On May 14, 2014, at 3:04 PM, Andreas Leha wrote: > >> Hi all, >> >> how do I find out about the filename, the currently open (let's say pdf) >> device is writing to? >> >>

[R] filename of current device

2014-05-14 Thread Andreas Leha
Hi all, how do I find out about the filename, the currently open (let's say pdf) device is writing to? If I find 'dev.cur()' returning 'pdf 3' when I expect 'nulldevice 1' I would like to know, which file that pdf device is actually targeting. Any help for my poor organization is highly apprecia

Re: [R] transition from depends to imports

2014-05-09 Thread Andreas Leha
Duncan Murdoch writes: > On 09/05/2014, 5:39 PM, Andreas Leha wrote: >> Hi Duncan, >> >> Thank you for your follow-up and fast response! >> >> Duncan Murdoch writes: >> >>> On 09/05/2014, 5:08 PM, Andreas Leha wrote: >>>> Hi all, >

Re: [R] transition from depends to imports

2014-05-09 Thread Andreas Leha
Hi Duncan, Thank you for your follow-up and fast response! Duncan Murdoch writes: > On 09/05/2014, 5:08 PM, Andreas Leha wrote: >> Hi all, >> >> I am having trouble to do a particular transition from depends to >> imports in one of my packages. >> >> Th

[R] transition from depends to imports

2014-05-09 Thread Andreas Leha
Hi all, I am having trouble to do a particular transition from depends to imports in one of my packages. This packages uses 'wilcoxsign_test' from the 'coin' package. And this is the only function from the coin package that it uses (directly). (Everything works fine, as long as my package depen

Re: [R] quickly extract response from formula

2013-11-01 Thread Andreas Leha
r-help-boun...@r-project.org] On >> Behalf >> Of Andreas Leha >> Sent: Friday, November 01, 2013 2:50 PM >> To: r-h...@stat.math.ethz.ch >> Subject: Re: [R] quickly extract response from formula >> >> Hi David, >> >> thanks for your quick answ

Re: [R] quickly extract response from formula

2013-11-01 Thread Andreas Leha
Hi David, thanks for your quick answer! David Winsemius writes: > On Oct 31, 2013, at 1:27 PM, Andreas Leha wrote: > >> Hi all, >> >> what is the recommended way to quickly (and without much burden on the >> memory) extract the response from a formula? > >

[R] quickly extract response from formula

2013-10-31 Thread Andreas Leha
Hi all, what is the recommended way to quickly (and without much burden on the memory) extract the response from a formula? The standard way to extract the response from a formula seems to be via model.frame() or model.extract(), but that is very memory intensive. Here is a quick example, that (

Re: [R] suppress startup messages from default packages

2013-07-15 Thread Andreas Leha
Hi Martin, Martin Morgan writes: > On 07/15/2013 06:25 AM, Duncan Murdoch wrote: >> On 15/07/2013 8:49 AM, Andreas Leha wrote: >>> Hi Helios, >>> >>> "Helios de Rosario" writes: >>> >>> >> Hi all, >>> >>

Re: [R] suppress startup messages from default packages

2013-07-15 Thread Andreas Leha
Hi David, David Winsemius writes: > On Jul 15, 2013, at 4:11 AM, Andreas Leha wrote: > >> Hi all, >> >> several packages print messages during loading. How do I avoid to see >> them when the packages are in the defaultPackages? > > I'm pretty sure

Re: [R] suppress startup messages from default packages

2013-07-15 Thread Andreas Leha
Hi Helios, "Helios de Rosario" writes: >> Hi all, >> >> several packages print messages during loading. How do I avoid to > see >> them when the packages are in the defaultPackages? >> >> Here is an example. >> >> With this in ~/.Rprofile >> ,[ ~/.Rprofile ] >> | old <- getOption("defaul

[R] suppress startup messages from default packages

2013-07-15 Thread Andreas Leha
Hi all, several packages print messages during loading. How do I avoid to see them when the packages are in the defaultPackages? Here is an example. With this in ~/.Rprofile ,[ ~/.Rprofile ] | old <- getOption("defaultPackages") | options(defaultPackages = c(old, "filehash")) | rm(old) `---

[R] segfault in gplots::heatmap.2

2012-08-30 Thread Andreas Leha
Hi all, I experience a segfault when calling gplots::heatmap.2(), but only when certain other packages are loaded. I am not sure for the correct place to send this bug report. Should I send it to the package maintainers directly? If R-help is the wrong place, please feel free to direct me to th