Displaying 8 results from an estimated 8 matches for "survivaltim".
Did you mean:
survivaltime
2007 May 07
4
creating a new column
hie l would like to create a 6th column "actual surv time" from the 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","survi...
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 control the size of the treatment variable...
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 35.17913
[4,] 2...
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.04949 0
[4,]...
2007 May 10
0
getting the normal dist from the chisqr with 1df
...~(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<-cbind(m,0)
m[m[,3]>m[,4],5]<-1
colnames(m)[5]<...
2007 May 17
1
creating columns
...2 2 2 l should be able to choose the size of the treatment grps and stratas the method l used intially creates the matrice randomly
n=20
m <- cbind( treatmentgrp = sample( 1:2,n, replace=T ),
strata = sample( 1:2, n, replace=T ),
survivalTime = rexp( n, rate=0.07 ),
somethingElse = rexp( n, rate=0.02 )
thanks
---------------------------------
Give spam the boot. Take control with tough spam protection
[[alternative HTML version deleted]]
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
...m>
> 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 797.04949
> 0
> [4,]...