| create.regr.data | R Documentation | 
This function creates a random data.frame with n observations of p parameters. You can choose whether or not the response variable y is binary or continuous. It returns a list with the data.frame as well as a vector of the true beta values used to create the data.
create.regr.data(n, p, ytype = "continuous", include.categorical = FALSE)
| n | The number of observations in the random data set. | 
| p | The number of parameters in the random data set. The function randomly chooses how many will be binary or continuous. | 
| ytype | Determines whether to have a binary or continuous response variable. Defaults to "continuous" | 
| include.categorical | A boolean condition that determines whether or not to include categorical predictors. By default it is set to FALSE | 
create.regr.data(100,4,ytype="continuous") create.regr.data(100,4,ytype="binary")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.