View source: R/simulate_data.R
simulate_data | R Documentation |
this function provides a simulated data set for the RF unit test.
simulate_data(
number_of_participants = 3,
covariance_matrix = diag(2),
outcome_column = 1,
means = c(0, 0)
)
number_of_participants |
Provide the number of participants in the dataset. Default is 3. |
covariance_matrix |
Matrix representing the relationship between the variables. Default is an identity matrix with 2 variables. |
outcome_column |
Indicates what the outcome column is to be specified. Default is first column. |
means |
Indicates the means of the matrix. Default is c(0,0). |
simulate_data(number_of_participants=3, covariance_matrix=diag(2), outcome_column=1, means=c(0,0))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.