View source: R/simulated_data.R
simulated_data | R Documentation |
Generate simulated response.
simulated_data( G, E, alpha, beta, error, family = c("continuous", "survival"), a1 = NULL, a2 = NULL )
G |
Input matrix of |
E |
Input matrix of |
alpha |
Matrix of the true coefficients for main E effects. |
beta |
Matrix of the true regression coefficients for all main G effects (the first row) and interactions. |
error |
Error terms. |
family |
Type of the response variable. If |
a1 |
If |
a2 |
If |
Response variable. A quantitative vector for family="continuous"
. For
family="survival"
, it would be a two-column matrix with the first column being the
log(survival time) and the second column being the censoring indicator. The indicator
is a binary variable, with "1" indicating dead, and "0" indicating right censored.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.