one.sim.diff.normal: Generate fake data for one subject, difference by condition...

Description Usage Arguments Value

Description

Calculates the difference of a normally distributed outcome variable by condition for a single subject.

Usage

1
2
one.sim.diff.normal(trash = NULL, mean1, mean2, sd1, sd2 = sd1, n.trials1,
  n.trials2 = n.trials1)

Arguments

trash

A throwaway first argument to allow piping from apply functions like replicate.

mean1

A numeric value specifying the "true mean" of the first task condition from which simulated data will be generated.

mean2

A numeric value specifying the "true mean" of the second task condition from which simulated data will be generated.

sd1

A numeric value specifying the "true standard deviation" of the first task condition from which simulated data will be generated.

sd2

A numeric value specifying the "true standard deviation" of the second task condition from which simulated data will be generated. Defaults to sd1, aka assumes equal variance between conditions.

n.trials1

A numeric value specifying the number of trials to be presented in the first task condition.

n.trials2

A numeric value specifying the number of trials to be presented in the second task condition. Defaults to n.trials1, aka assumes equal number of trials in both conditions.

Value

The estimated difference and standard error of the difference estimate from one round of simulated data.


monicathieu/psytrial documentation built on May 28, 2019, 1 p.m.