Displaying 2 results from an estimated 2 matches for "pom1".
Did you mean:
com1
2001 Apr 06
0
Subscript out of bounds- (my) problem with expansion of expression?
...2 11 0 36 109
My question is: Why the upper call of chisq.test works,
but application of function (described below) generating the "-c(3,4,6)"
string automatically from the table does not?
A function generating logical vector indicating non-zero values in a vector
"vec1"
pom1 <- function(vec1)
{
po1 <-(vec1)>0
po1
}
>pom1(mytable[1, ,1])
1 2 3 4 5 6 7 8
TRUE TRUE NA NA TRUE NA TRUE TRUE
A function "generator" with argument of logical vector "vec" indicating
non-presence of zeros is defined, which returns d...
2005 Jul 14
2
Coxph with factors
Hello,
I am fitting a coxph model with factors. I am running into problems when
using 'survfit'. I am unsure how R is treating the factors when I fit, say:
> DATA<-data.frame(time.sec,done,f.pom=factor(f.pom),po,vo)
> final<-coxph(Surv(time.sec,done)~f.pom*vo+po,data=DATA)
> final.surv<-survfit((final), individual=T,conf.type="log-log")