create_sample_data: Create Sample Data

View source: R/create_sample_data.R

create_sample_dataR Documentation

Create Sample Data

Description

The function generated mock data for tests and examples according to the arguments

Usage

create_sample_data(
  p_mean,
  p_sd,
  seed = 1,
  N = 30,
  trials_per_cnd = 100,
  wSEsd = 2
)

Arguments

p_mean

the effect's population mean

p_sd

the standard deviation of the population's effect

seed

- a seed to use when generating the resulting data frame

N

- the number of simulated participants

trials_per_cnd

- the number of simulated trials per condition

wSEsd

- the standard deviation of the dependent measure (within subject error term)

Value

a data frame with three columns: id (participant id), 'condition' (condition label), and 'var' (the dependent variable)


mufcItay/weaknull documentation built on Jan. 29, 2025, 7:28 p.m.