Skip to contents

Generates a simulated dataset for testing mvSuSiE.

Usage

mvsusie_sim1(
  n = 200,
  p = 500,
  r = 2,
  s = 4,
  center_scale = FALSE,
  y_missing = NULL
)

Arguments

n

Number of samples.

p

Number of variables.

r

Number of outcomes.

s

Number of effect variables per outcome if >= 1; proportion of effect variables per outcome if < 1.

center_scale

If TRUE, center and scale X and Y.

y_missing

Fraction of entries in Y to set to NA (per sample, per outcome). If NULL, no missing values are created.

Value

A list with elements X, y, y_missing, d, n, p, r, V, and b.