powered by
rbinTrait(phy, beta, alpha, X = NULL, model = c("LogReg"))
rTrait
tre = rtree(50) x = rTrait(phy=tre) X = cbind(rep(1,50),x) y = rbinTrait(phy=tre, beta=c(-1,0.5), alpha=1, X=X)
Run the code above in your browser using DataLab