subset_survey_compiler_random: Build RICH subset surveys (e.g., for partner choice or PG...

View source: R/subset_survey_compiler_random.R

subset_survey_compiler_randomR Documentation

Build RICH subset surveys (e.g., for partner choice or PG games.)

Description

This is a small helper function to create suveys (PDFs) to collect data for PGG contributions and similar games.

Usage

subset_survey_compiler_random(
  path,
  pattern = ".jpg",
  token_color = "navyblue",
  set_size = 4,
  height = 8.5,
  width = 11,
  seed = 123,
  full_alter_set = TRUE,
  max_iter = 10000,
  gid_size = 4,
  game_name = "Random",
  RID = "CR",
  day = 1,
  month = 3,
  year = 2023
)

Arguments

path

Path to RICH folder.

pattern

Should "JPG" be "jpg" be used to load photos?

token_color

"color" of tokens placed. If data was entered manually, place whatever value was stored to indiciate a tie: e.g., "1"

set_size

Size of set of possible alters.

height

Size of PDF output.

width

Size of PDF output.

seed

Number to use in seeding the randomizer.

full_alter_set

Include all alters on roster, or only those who played first round of game?

max_iter

Max time to search for legal permutations.

gid_size

Number of characters in hashcodes for the game IDs.

game_name

Used to label PDF surveys.

RID

ID of researcher.

day

Day of interview.

month

Month of interview.

year

Year of interview.

Value

A file folder, SubsetSurveys, full of PDFs of subset-surveys to run, and a second folder, SubsetContributions, full of CSV files to store results.

Examples

## Not run: 
subset_survey_compiler_random(path, pattern = ".jpg", token_color="navyblue", set_size=4, 
                                 height=8.5, width=11, seed=123, gid_size=4, max_iter=10000)

## End(Not run)


ctross/DieTryin documentation built on Sept. 8, 2024, 8:07 p.m.