compose_data: Compose response data from fixed and random effects

Description Usage Arguments Details Value

Description

Compose response data from fixed and random effects

Usage

1
2
compose_data(design_args, fixed = NULL, subj_rmx = NULL,
  item_rmx = NULL, verbose = FALSE, contr_type = "contr.dev")

Arguments

design_args

List containing information about the experiment design; see stim_lists

fixed

vector of fixed effects

subj_rmx

matrix of by-subject random effects

item_rmx

matrix of by-item random effects

verbose

give debugging info (default = FALSE)

contr_type

contrast type (default "contr.dev"); see ?contrasts

Details

This will add together all of the fixed and random effects according to the linear model specified by the design. Note, however, that it does not add in any residual noise; for that, use the function sim_norm.

Value

a data frame containing response variable Y, the linear sum of all fixed and random effects.


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