Learn R Programming

cocoreg (version 0.1.1)

create_syn_data_toy: An illustrative synthetic data collection

Description

Model: D_k = D_shared_by_all + D_shared_by_subset + D_unique,

Usage

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

Run this code
## Not run: ------------------------------------
# dc <- create_syn_data_toy()
# ggplot_dflst(dc$data, ncol = 1)
## ---------------------------------------------

Run the code above in your browser using DataLab