Description Usage Arguments Value Author(s) Examples
SIM.FUN
generates binary, count, and continuous-time survival response data that are associated with design matrix.
The design matrix comes from a correlated multivariate normal. The default signals (beta0) are sparse.
1 2 |
nn |
sample size |
p.x |
number of covariates |
cor |
correlation of covariates |
family |
the family of response data taking c('binary','count','Cox') |
beta0 |
the coefficients for the design, including intercept |
For binary and count data, it returns a matrix with the first column=response, rest = design matrix, without intercept. For survival data, it returns a matrix with the first column U, second column delta (0,1), and rest = design matrix.
Yan Wang, Tianxi Cai
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.