format_wide: Create wide-format datasets in simulate_r_database

View source: R/simulate_r.R

format_wideR Documentation

Create wide-format datasets in simulate_r_database

Description

Create wide-format datasets in simulate_r_database

Usage

format_wide(
  x,
  param,
  sample_id,
  var_names,
  show_applicant,
  decimals = 2,
  noalpha = FALSE
)

Arguments

x

Simulation list

param

Is simulation data parameter data (TRUE) or sample data (FALSE)?

sample_id

What is the ID associated with the sample?

var_names

Variables to pull from simulation list

show_applicant

Should applicant data be shown for sample statistics (TRUE) or suppressed (FALSE)?

decimals

Number of decimals to which statistical results (not parameters) should be rounded. Rounding to 2 decimal places best captures the precision of data available from published primary research.

noalpha

Logical scalar indicating whether or not alpha is in the database.

Value

A dataframe of results


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