[R] How can I generate a random correlation matrix with some off-diagonal elements being zero

2011-04-02 Thread Xing Yuan
Hi, How can I generate a random correlation matrix, R={r_ij}, where some off-diagonal elements being zero? Thanks in advance. Joe [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listin

Re: [R] Convert text into a variable name

2008-11-05 Thread Xing Yuan
; ?assign > > On Thu, 2008-11-06 at 00:03 -0500, Xing Yuan wrote: > > Hello R users, > > > > Does anybody know what command I should use to convert the text string > "AGE" > > to be variable name AGE so I can assign value to it > > e.g. AGE = 39? >

[R] Convert text into a variable name

2008-11-05 Thread Xing Yuan
Hello R users, Does anybody know what command I should use to convert the text string "AGE" to be variable name AGE so I can assign value to it e.g. AGE = 39? Thank you very much! Joe [[alternative HTML version deleted]] __ R-help@r-project.o

[R] formula form of coxph

2008-10-02 Thread Xing Yuan
you very much! Xing Yuan University of Pittsburgh [[alternative HTML version deleted]] __ R-help@r-project.org 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] Compare mean survival time

2008-02-18 Thread Xing Yuan
Dear List, Does anybody no how to compare mean survival times for two (more) groups in R? What test statistics should I use? Thank you very much! Joe [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.

[R] Output mean/median survival time from survfit

2008-02-05 Thread Xing Yuan
Hi all, Does anybody know how to output the mean/median survival time from survfit? Thank you very much!!! Joe [[alternative HTML version deleted]] __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do rea