Description Usage Arguments Value
Simulate the response data given covariates, beta and DGP specification.
1 | generate_response(X, beta, family, f = identity)
|
X |
matrix; data containing the covariates |
beta |
numeric vector; coefficients of the linear predictors. |
family |
family object; see "?family" for more details. |
f |
function; transformation for the covariates. |
a dataframe; the simulated data.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.