one.sim.mean.normal: Generate fake data for one subject, one normally distributed...

Description Usage Arguments Value

Description

Calculates the mean of one normally distributed outcome variable for a single subject.

Usage

1
one.sim.mean.normal(trash = NULL, mean = 0, sd = 1, n.trials)

Arguments

trash

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

mean

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

sd

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

n.trials

A numeric value specifying the number of trials to be presented.

Value

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


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