DGP | R Documentation |
Generating the multiple-instance data set.
DGP(n, m, beta)
n |
an integer. The number of bags. |
m |
an integer or vector of length |
beta |
a vector. The true regression coefficients. |
a list including (1) bag-level labels, Z
, (2) the design matrix, X
, and (3) bag ID of each instance, ID
.
data1 <- DGP(50, 3, runif(10, -5, 5))
data2 <- DGP(50, sample(3:5, 50, TRUE), runif(10, -5, 5))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.