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
x: +32/(0)16/337015
Web: http://med.kuleuven.be/biostat/
http://www.student.kuleuven.be/~m0390867/dimitris.htm
- Original Message -
From: "raymond chiruka" <[EMAIL PROTECTED]>
To:
Sent: Thursday, April 26, 2007 11:31 AM
Subject: [R] adding a column to a matrix
m<-cbind(m,0)
m[m[,3]>m[,4],5]<-1
colnames(m)[5]<-"censoring"
raymond chiruka wrote:
>
> 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.49
Hello,
Please, consider the functions "pmin" and "pmax".
Tuesday, May 1, 2007, 3:29:54 PM, you wrote:
rc> thanks for the previous advice it seems to have worked what about the
following
rc> l have the following dataset and would like to calculate the actual
survival time by
rc> if censorin