Learn R Programming

stabiliser (version 1.0.6)

simulate_data: simulate_data

Description

Simulate a dataset. This can optionally include variables with a given associated with the outcome.

Usage

simulate_data(nrows, ncols, n_true = 0, amplitude = 0)

Value

A simulated dataset

Arguments

nrows

The number of rows to simulate.

ncols

The number of columns to simulate.

n_true

The number of variables truly associated with the outcome.

amplitude

The strength of association between true variables and the outcome.