simulate_data: simulate_data

View source: R/simulate_data.R

simulate_dataR Documentation

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)

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.

Value

A simulated dataset


stabiliser documentation built on May 31, 2023, 9:10 p.m.