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

Description Usage Arguments Value Examples

View source: R/create_ad_wrappers.R

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

1
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

1
2
3
4
5
6
7
8
9
#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)))

psychmeta documentation built on June 1, 2021, 9:13 a.m.