Description Usage Arguments Details Value Examples
Generate a data set
1 | datafy(obs, means, covmat, var.names, genmod)
|
obs |
Number of observations in the data set. |
means |
A vector of predictor means. |
covmat |
A covariance matrix (see example). |
var.names |
A string of variable names (optional). |
genmod |
Vector of parameter values for a logistic regression model used in the generation of binary outcomes. |
This function simulates a data set for use in simulations of model development, validation or updating.
Currently supports the generation of correlated continuous, normally distributed predictor variables and a binary outcome.
datafy
returns a dataframe with m predictors and a binary outcome
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.