create_syn_data_toy: An illustrative synthetic data collection

Description Usage Arguments Value Examples

View source: R/synthetic_datasets.R

Description

Model: D_k = D_shared_by_all + D_shared_by_subset + D_unique,

Usage

1
create_syn_data_toy(N = 100, normalize = T, noisemf = 0.1)

Arguments

N

Number of observations in data as integer

normalize

(optional) Should the data be processed with dl_scale()? A boolean value.

noisemf

(optional) Multiplication factor for noise

Value

A list with elements

data

Data collection as a list of data.frames

Z_all

Signals shared by all datasets in the collection

Z_sub

Signals not shared by all datasets

W_all

Mixing weights for Z_all

W_sub

Mixing weights for Z_sub

E

Noise

var.coef

Noise multiplication factor used

Examples

1
2
3
4
5
## Not run: 
dc <- create_syn_data_toy()
ggplot_dflst(dc$data, ncol = 1)

## End(Not run)

cocoreg documentation built on May 2, 2019, 6:48 a.m.