simulate_data: simulate data

View source: R/simulate_data.R

simulate_dataR Documentation

simulate data

Description

this function provides a simulated data set for the RF unit test.

Usage

simulate_data(
  number_of_participants = 3,
  covariance_matrix = diag(2),
  outcome_column = 1,
  means = c(0, 0)
)

Arguments

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).

Examples

simulate_data(number_of_participants=3, covariance_matrix=diag(2), outcome_column=1, means=c(0,0))

DCAN-Labs/RFRF documentation built on March 15, 2024, 2:33 p.m.