generateData {brada}R Documentation

generateData

Description

Generates a matrix of trial data.

Usage

generateData(p,Nmax,nsim,seed=420)

Arguments

p

true response probability

Nmax

Maximum trial size.

nsim

Number of Monte Carlo iterations.

seed

Random number generator seed.

Value

Returns a matrix with simulated trial data.

Author(s)

Riko Kelter

Examples

generateData(p=0.2,Nmax=40,nsim=100,seed=420)

[Package brada version 1.0 Index]