[R] Interpretation of p-values, coxph

2011-02-15 Thread Viki S
Hi guys, I have been testing the hypothesis for difference of survival between four different classes. The p-values provided in coxph output are confusing for me to interpret. Here is the output : sur<-coxph(Surv(SURVIV, status == 1)~factor(A)+cluster(rownames(d)), data = d, model=TRUE) Call:

[R] Error: object 'short' not found

2010-10-19 Thread Viki S
Hi guys, Can anyone tell me what is the meaning of following command ? paste(execDir,paste(short,"myfile",sep="_"),sep="\") R gives me an error : Error: object 'short' not found I tried to find help about 'short' in R, but could not find any such function/ object. Viki

Re: [R] Creating named.list from two matrix columns

2010-09-06 Thread Viki S
; From: jholt...@gmail.com > To: is...@live.com > CC: r-help@r-project.org > > Is this what you want: > > > x > V1 V2 > 1 row1 2334 > 2 row2 347 > 3 row3 379 > > x.list <- as.list(x$V2) > > names(x.list) <- x$V1 > > x.list > $row1

[R] Creating named.list from two matrix columns

2010-09-06 Thread Viki S
Hi Friends, I am new to R. On R utility class pages, creating "named.list" is described with this command : new("named.list",a=1,b=2) For large matrix having two columns, such as : "row1" 2334 "row2" 347 "row3" 379 ... I want to create a named.list like : $row1 [1] 2334 $row2 [1] 347