subset_data | R Documentation |
Function to subset data for meta-analysis
subset_data(data, K)
data |
list three elements: first named |
K |
integer number of desired subsets |
list subsets of data, and the set of indexes
## Create a list of K random subsets given a list with Y, X, and crd
n <- 100
p <- 3
q <- 2
X <- matrix(rnorm(n*p), nrow = n, ncol = p)
Y <- matrix(rnorm(n*q), nrow = n, ncol = q)
crd <- matrix(runif(n*2), nrow = n, ncol = 2)
subsets <- subset_data(data = list(Y = Y, X = X, crd = crd), K = 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.