[R] competing risk p value in a figure

2007-08-12 Thread phguardiol

Dear R users

Is there a way to include in a figure the 2 sided p value obtained with the crr 
function in the package cmprsk

Such as the one for cuminc: 


text(3.5,0.05, adj=0, paste(Gray test: p-value = , round(fit1$Tests[1,2],3)))

thanks for your help
?

Phil

[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] detection of outliers

2004-09-23 Thread Phguardiol
Hi,
this is both a statistical and a R question...
what would the best way / test to detect an outlier value among a series of 10 to 30 
values ? for instance if we have the following dataset: 10,11,12,15,20,22,25,30,500 I 
d like to have a way to identify the last data as an outlier (only one direction). One 
way would be to calculate abs(mean - median) and if elevated (to what extent ?) delete 
the extreme data then redo.. but is it valid to do so with so few data ? is the 
(trimmed mean - mean) more efficient ? if so, what would be the maximal tolerable 
value to use as a threshold ? (I guess it will be experiment dependent...) tests for 
skweness will probably required a larger dataset ? 
any suggestions are very welcome !
thanks for your help
Philippe Guardiola, MD

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] survival analysis question

2004-04-19 Thread Phguardiol
Dear R users,
I have survival estimates for 2 groups according to a factorial covariate 
(covar=1 or 2) and I d like to only plot the difference in term of survival 
between these 2 groups over time with 95%CI. Could someone send me a short script 
to do that since I m not an old R programmer ?
thanks
Philippe 

[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] menuRandomSample funciton in S+ - R?

2004-01-09 Thread Phguardiol
Hi all
I cannot find the menuRandomSample function, which is available in S+, in R. 
Does it exist in R ? If so, what is its name ?
Thanks
Philippe

[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


[R] survival analysis question

2003-12-12 Thread Phguardiol
Hi,
I m studying the effect of a binary covariate on the time to an event, ie, patient 
requiring treatment. 
It clearly appears that this covariate has an effect during the first year of life but 
not anymore thereafter.
I d like to know until what age this covariate has a significant impact on the 
endpoint of interest, knowing that there is a competing risk here since the patient 
can also die during the time of study.
What would be the best option to do so ? 
Said in a different way, what I think is that when this covariate is = 1 the risk of 
requiring a treatment is increased as compared with patients who have this covariate = 
0 by 4, 5, 6, 7, 8 years of age but after there is no more impact of this covariate 
since they will all receive a treatment. The idea is to be able to say, if covariate = 
0 then the risk of requiring a treatment until 8 years is lower than if the covariate 
= 1; and I d like to be able to say until when this risk in significantly increased. 
Hope I m clear !  
thanks for your help
Philippe

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] Source package installation for WinXPpro

2003-10-09 Thread Phguardiol
Hi
I d like to compile the source code from last Affy package for WinXPpro under 
R18beta
however the doc is pretty poor regarding this process...
I went to FAQ R Win then to http://www.stats.ox.ac.uk/pub/Rtools/ and 
downloaded in The essentials, tools and Perl 5.8.0, then MingW from www.mingw.org and 
I wonder if I need any other stuff from this page ? I m not sure but I dont 
think I need the cross-conpilers ? what about the others below ? Then I 
installed MingW and Perl.
Then what am i suposed to do?
If I click on Rcmd I dont get any windows to open or just for a second...
thanks for your help
Philippe

[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] Problem with R1.8beta

2003-09-30 Thread Phguardiol
Hi,
I trying to use r.180beta on a XPPro PC with Athlon 2.0
I downloaded the zip file and when I unzipped it using winzip last version
I had this message:
C:\Program Files\R\rw1080beta\doc\manual\refman.pdf
An error occured while trying to copy a file:
The source file is corrupted.

Anything to do with this or shall I just skip it ?
thanks
Philippe G

[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


[R] in addition R1.8b install

2003-09-30 Thread Phguardiol
this problem also occurred later in the installation process:
C:\Program Files\R\rw1080beta\doc\manual\refman.pdf
C:\Program Files\R\rw1080beta\library\mva\html\loadings.html
C:\Program Files\R\rw1080beta\library\ctest\html\fisher.test.html
C:\Program Files\R\rw1080beta\library\base\chtml\base.chm
C:\Program Files\R\rw1080beta\afm\hvo.afm
An error occured while trying to copy a file:
The source file is corrupted.

however by the end R opened correctly
any suggestions ?
thanks
Philippe

[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help