[R] How to combine two matrix or vectors

2012-02-10 Thread summer
such as a=[1,2,3 ],b =[2,4] I want to get a new one [1 2 3 4 5]. Thank you. -- View this message in context: http://r.789695.n4.nabble.com/How-to-combine-two-matrix-or-vectors-tp4376467p4376467.html Sent from the R help mailing list archive at Nabble.com.

[R] how to change x-axis ?

2012-02-09 Thread summer
Hi, I want to define the x-axis in plot as 2,4,6.100 instead of the default one. How to do that? Many thanks. -- View this message in context: http://r.789695.n4.nabble.com/how-to-change-x-axis-tp4374503p4374503.html Sent from the R help mailing list archive at Nabble.com.

Re: [R] need help with understanding coxph encoding

2012-02-08 Thread summer
Thank you. The factor is useful. What if I did not factor it,and the x is listed as 2 2 1 1 1 1 2 2 2 and so on. How would I know the HR for coxph is group2/group1 or group1/group2? I understand it's just inverse but how can I identify the exact HR? -- View this message in context:

[R] How to store the p value and number of events into a matrix

2012-02-08 Thread summer
Hi, there is p value and number of events from coxph results. How can I keep record of every p value and number of events automatically if I run 100 times? Another question is how can I change the true or faulse statment to 1 and 0. such as w=12, I want the value of w to be 1 not true. Thank you.

[R] need help with understanding coxph encoding

2012-02-07 Thread summer
Hi, in coxph, coxph(Surv(time, status)~x,data=alm). How to encode x? For example, if x has two groups, the treatment group and control group. if I encode them as 1 and 2. Is the HR results treatment/control? What if I encode them as 0 and 1. I am confused with how survival package works for HR.

[R] MI help

2011-05-16 Thread Allen, Summer
Hi, I am trying to do multiple imputation on a panel of data and then, use the imputed values in stochastic frontier analysis. I am using this code just as a start to see if will run: mi(countrydata, n.iter = 30, R.hat = 1.1, max.minutes = 20, rand.imp.method = bootstrap,

[R] barplot with log base 2 scale or shift the x-axis

2008-05-02 Thread Summer Nitely
. Any ideas? Thanks, Summer [[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 and provide commented

[R] truncate row names

2008-04-24 Thread Summer Nitely
is not a very appealing option. Is there another way? Is there a way to cut off the first 5 character positions in the row name? Or to force R to take the column names rather than concatenate the matrix and column names in the regression? Any help would be greatly appreciated. Thanks, Summer

[R] Estimated survival function in Epi package

2007-12-11 Thread Summer Nitely
Does anyone know if the Epi package has a function that returns/plots the survival function for interval censored survival analysis. I haven't found one in the manual that does this explicitly, but I could be missing it. I am writing a paper, and I just coded the survival function myself, but it