[R] installing packages

2007-06-14 Thread raymond chiruka
hie how do l install R packages .L'm using windows xp.plus is there a dipository for the packages that one can browse to find out what packages are available. thanks. - Be a PS3 game guru. [[alternative HTML version deleted]]

[R] log-rank tests

2007-05-23 Thread raymond chiruka
hie when using survdiff there are only 2 values for rho 01 but there are other rank tests .l know l can use other values of rho (l have tried it) but then how do l know what test is being carried out. l know there is more than 1 test for comparing survival data thanks

[R] controling the size of vectors in a matrix

2007-05-17 Thread raymond chiruka
hie R users l have the following matrix n=20 m-matrix(nrow=n,ncol=4) colnames(m)=c(treatmentgrp,strata,survivalTime) for(i in 1:n) m[i,]-c(sample(c(1,2),1,replace=TRUE),sample(c(1:2),1,replace=TRUE),rexp(1,0.07),rexp(1,0.02))

[R] controling the size of vectors in a matrix

2007-05-17 Thread raymond chiruka
hie R users l have the following matrix n=20 m-matrix(nrow=n,ncol=4) colnames(m)=c(treatmentgrp,strata,survivalTime) for(i in 1:n)

[R] creating columns

2007-05-17 Thread raymond chiruka
l would like to create the following matrice treatmentgrpstrata 11 11 11 12 12 12 21 21 21 22 22 22 l

[R] creating different strata

2007-05-16 Thread raymond chiruka
hie l would like to create about ten strata l have tried using sample(c(1,2),1,replace=TRUE) but all l get is a vector of 1 and 2 if i change it to sample(c(1,10),1,replace=TRUE) it gives me a vector of 1 and 10 how do l go about it -

Re: [R] creating different strata

2007-05-16 Thread raymond chiruka
sorry all l got the answer thanks raymond chiruka [EMAIL PROTECTED] wrote: hie l would like to create about ten strata l have tried using sample(c(1,2),1,replace=TRUE) but all l get is a vector of 1 and 2 if i change it to sample(c(1,10),1,replace=TRUE) it gives me a vector of 1

[R] normal distribution from chisqrd

2007-05-11 Thread raymond chiruka
hie l have obtained a logrank statistic and would like to get the normal version from the same data eg sqrt(chiqsqr)with 1 df ~n(1,0) is this possibe using R or Do l have to programme it thanks - Bored stiff? Loosen up...

[R] getting the normal dist from the chisqr with 1df

2007-05-10 Thread raymond chiruka
l used the following code to generate a sample and then calculated then did a log rank test.can l get the normal version of the logrank eg sqrt of the chisqr(1) will give you the N~(0,1). from my sample can i use the above expression to get the normal dist from the result of the log rank

Re: [R] creating a new column

2007-05-08 Thread raymond chiruka
739.96591 0 19 201 1306.14860 0 20 Happy working, Corinna -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Schmitt, Corinna Gesendet: Dienstag, 8. Mai 2007 10:06 An: raymond chiruka; r

[R] censoring

2007-05-08 Thread raymond chiruka
in R when carring out the log rank test is the censored variable denoted by 1 or 0 or its of no consequence. thanks - always stay connected to friends. [[alternative HTML version deleted]] __

[R] creating a new column

2007-05-07 Thread raymond chiruka
hie l would like to create a 6th column actual surv time from the following data the condition being if censoringTimesurvivaltime then actual survtime =survival time else actual survtime =censoring time the code l used to create the data is s=2 while(s!=0){ n=20

[R] logrank test

2007-05-07 Thread raymond chiruka
hie how do you compute the logrank test using R what commands do you use thanks - Don't pick lemons. [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

[R] computing logrank statistic/test

2007-05-07 Thread raymond chiruka
hie how do you compute the logrank test using R what commands do you use my data looks something like just an example treatmentgrp strata censoringTime survivalTime censoring act.surv.time [1,] 2 2 42.89005 1847.3358 1 42.89005 [2,]

[R] missing package

2007-05-02 Thread raymond chiruka
l'm trying to find the survdiff package/function but it seems i cant get it how do l instal it if its not there thanks - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing

[R] adding column to a matrix

2007-05-01 Thread raymond chiruka
l have the following dataset and would like to calculate the actual survival time by if censoring time survival time then actual survival time =survival time else its= censoring time. treatmentgrp strata censoringTimesurvivalTime censoring actualsurvivaltim [1,]

[R] logrank test

2007-05-01 Thread raymond chiruka
how do l programme the logrank test. l am trying to compare 2 survival curves - [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list

[R] adding a column to a matrix

2007-04-26 Thread raymond chiruka
i would like to add a variable to an existing matrix by manipulating 2 previous variables eg for the data m treat strata censti survTime [1,] 1 2 284.684074 690.4961005 [2,] 1 1 172.764515 32.3990335 [3,] 1 1 2393.195400 24.6145279

[R] creating random numbers

2007-04-25 Thread raymond chiruka
l want to create a column of 1 and 2 randomly what command should l use eg treatment strata 1 1 2 0 1 1 2 1 2 0 2 1 2

Re: [R] Random number generator in R compared

2007-04-20 Thread raymond chiruka
I am trying to generate survival data using R .Im trying to randomly generate a column of 1s and 0 and another column randomly generated using an exponential distribution but l cant seem to get the random function. how do l go about it thanks in advance rt chiruka