format_long: Create long-format datasets in simulate_r_database

View source: R/simulate_r.R

format_longR Documentation

Create long-format datasets in simulate_r_database

Description

Create long-format datasets in simulate_r_database

Usage

format_long(
  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


psychmeta/psychmeta documentation built on Feb. 12, 2024, 1:21 a.m.