create_ad_array: Create an array of all possible combinations of artifact...

View source: R/create_ad_wrappers.R

create_ad_arrayR Documentation

Create an array of all possible combinations of artifact values from 2-4 artifact distributions

Description

Creates a fully crossed multidimensional array of artifacts and weights (with 1 to 4 dimensions of artifact values) for use in interactive artifact-distribution meta-analyses.

Usage

create_ad_array(ad_list, name_vec = NULL)

Arguments

ad_list

List of artifact distribution tables (i.e., objects produced by the create_ad function).

name_vec

Optional vector of artifact names that correspond to the tables in ad_list; if NULL, artifact names are taken from the names of list objects in ad_list.

Value

Data frame of all possible combinations of artifact values with the weight associated with each combination of artifacts.

Examples

#create_ad_array(ad_list = list(.create_ad_int(art_vec = c(.8, .8, .9),
#                                         wt_vec = c(100, 200, 100), decimals = 2),
#                               .create_ad_int(art_vec = c(.8, .8, .9),
#                                         wt_vec = c(100, 200, 100), decimals = 2)),
#                name_vec = c("q_x", "q_y"))
#create_ad_array(ad_list = list(q_x = .create_ad_int(art_vec = c(.8, .8, .9),
#                                               wt_vec = c(100, 200, 100), decimals = 2),
#                               q_y = .create_ad_int(art_vec = c(.8, .8, .9),
#                                               wt_vec = c(100, 200, 100), decimals = 2)))


jadahlke/psychmeta documentation built on Feb. 11, 2024, 9:15 p.m.