Description Usage Arguments Value Examples
View source: R/simulationFunction.R
simulations with two binomial distributed predictors
1 | simNonNestedBinomial(B, n, beta1, beta2, censrate = 0)
|
B |
simulations runs |
n |
sample size |
beta1 |
first coefficient |
beta2 |
second coefficient |
censrate |
censoring rate for exponential model |
list
1 2 3 4 5 6 7 8 9 | ## Not run:
require("lava")
# setup
simmat <- expand.grid(n=c(100, 200, 350), beta1=c(0,0.5,1),beta2=c(0,1))
# simulations w/o censoring
simres <- t(apply(simmat, 1, function(d) unlist(simNonNestedBinomial(B=10, n=d[1], beta1=d[2], beta2=d[3], censrate=0))))
simres <- cbind(simmat,simres)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.