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

View source: R/subset_survey_compiler_predefined.R

subset_survey_compiler_predefinedR 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_predefined(
  path,
  pid = NULL,
  id_set = NULL,
  pattern = ".jpg",
  height = 8.5,
  width = 11,
  seed = 123,
  gid_size = 4,
  game_name = "Predefined",
  RID = "CR",
  day = 1,
  month = 3,
  year = 2023
)

Arguments

path

Path to RICH folder.

pid

ID code of focal recipient.

id_set

IDs of alter recipients (as vector).

pattern

Should JPG be jpg be used to load photos?

height

Size of PDF output.

width

Size of PDF output.

seed

Number to use in RNG.

gid_size

Number of terms 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, filled with PDFs of sub-surveys to run, and a second folder, SubsetContributions, filled with CSV files that will be used to record survey results.


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