search for: treatmentgrp

Displaying 8 results from an estimated 8 matches for "treatmentgrp".

2007 May 07
4
creating a new column
...following data the condition being if censoringTime>survivaltime 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 m<-matrix(nrow=n,ncol=4) colnames(m)=c("treatmentgrp","strata","censoringTime","survivalTime") for(i in 1:20) m[i,]<-c(sample(c(1,2),1,replace=TRUE),sample(c(1,2),1,replace=TRUE),rexp(1,.007),rexp(1,.002)) m<-cbind(m,0) m[m[,3]>m[,4],5]<-1 colnames(m)[5]<-"censo...
2007 May 17
1
creating columns
l would like to create the following matrice treatmentgrp strata 1 1 1 1 1 1 1 2 1 2 1 2 2 1 2 1 2 1 2 2 2 2 2 2 l should be able to choose the size of the treatment grps and stratas the...
2007 May 17
2
controling the size of vectors in a matrix
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)) print(m) 1.l would like to...
2007 May 07
2
computing logrank statistic/test
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,] 1 1 74.40379 440.3467 1 74.40379 [3,] 2 2 35.17913 344.1113 1 3...
2007 May 01
1
adding column to a matrix
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 censoringTime survivalTime censoring actualsurvivaltim [1,] 1 1 1.012159 1137.80922 0 [2,] 2 2 32.971439 247.21786 0 [3,] 2 1 85.758253 797.049...
2007 May 10
0
getting the normal dist from the chisqr with 1df
...l 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 test. thank s=1 while(s!=0){ n=100 m<-matrix(nrow=n,ncol=4) colnames(m)=c("treatmentgrp","strata","censoringTime","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)) m<-cb...
2007 Apr 26
3
adding a column to a matrix
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 [4,] 2 1 30.364771 8.0272267 [5,] 1 1 523.182282 554.7659501 l
2007 May 03
0
unscrible pls
...54.90575.qm@web33005.mail.mud.yahoo.com> > Content-Type: text/plain > > 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 censoringTime survivalTime censoring > actualsurvivaltim > [1,] 1 1 1.012159 1137.80922 > 0 > [2,] 2 2 32.971439 247.21786 > 0 > [3,] 2 1 85.758253...