Learn R Programming

psychmeta (version 2.6.5)

create_ad_array: 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)

Value

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

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.

Examples

Run this code
#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)))

Run the code above in your browser using DataLab