sim_norm: Sample data from population with normal error variance

Description Usage Arguments Value See Also Examples

Description

Sample data from population with normal error variance

Usage

1
2
sim_norm(design_args, n_subj, params, contr_type = "contr.dev",
  verbose = FALSE)

Arguments

design_args

experiment design (see stim_lists); must contain sub-element n_item defining the number of items.

n_subj

number of subjects

params

list with parameters defining population (fixed, subj_rfx, item_rfx), and err_var; normally generated by a call to gen_pop.

contr_type

name of function defining IV contrast type; see ?contrasts

verbose

whether to return explicit information about individual random effects and residual error

Value

A data frame with simulated data

See Also

gen_pop

Examples

1
2
3
4
design_args <- list(ivs = c(A = 2, B = 3), n_item = 18)
pop_params <- gen_pop(design_args, 12)

dat <- sim_norm(design_args, 12, pop_params)

dalejbarr/funfact documentation built on May 14, 2019, 3:31 p.m.