R/gen.bin.2arm.R

Defines functions gen.bin.2arm

gen.bin.2arm <-
function(p.c, n.c, p.t, n.t, del.cut){
  k <- length(n.c)
  x.c <- rbinom(k, n.c, p.c)
  x.t <- rbinom(k, n.t, p.t)
  mydata <- list(K=k, x.c=x.c, x.t=x.t, n.c=n.c, n.t=n.t, del.cut=del.cut)
  mydata
}

Try the hbdct package in your browser

Any scripts or data that you put into this service are public.

hbdct documentation built on July 4, 2017, 9:09 a.m.