Learn R Programming

psychmeta (version 2.7.0)

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

Value

A dataframe of results

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.