search for: props1

Displaying 1 result from an estimated 1 matches for "props1".

Did you mean: props
2009 Jan 20
1
two-sample test of multinomial proportion
...c(21,46), tests=c(189,411) ) multi.ind<-data.frame(Type= rep(c("H1","H3","Neg"),c(2+12,21+46,189+411-2-12-21-46)), group=rep(c("a","b","a","b","a","b"),c(2,12,21,46,189-2-21,411-12-46)) ) props1<-vector(mode="numeric",length=1000) props2<-vector(mode="numeric",length=1000) for(i in 1:1000){ sub.tab<-t(table(Subtyp.orig[sample(1:nrow(Subtyp.orig),nrow(Subtyp.orig),replace=TRUE),])) props1[i]<-sub.tab[1,1]/(sub.tab[1,1]+sub.tab[1,2]) props2[i]<-sub.tab[2,1]...