check_mixed_design: Get random intercepts for subjects and items

View source: R/check_mixed_design.R

check_mixed_designR Documentation

Get random intercepts for subjects and items

Description

Get error terms from an existing data table.

Usage

check_mixed_design(data, dv = 1, sub_id = 2, item_id = 3, formula = NULL)

Arguments

data

the existing tbl

dv

the column name or index containing the DV

sub_id

the column name or index for the subject IDs

item_id

the column name or index for the item IDs

formula

the formula to run in lmer (defaults to null model dv ~ 1 + (1|sub_id) + (1|item_id))

Value

a list of parameters

Examples

des <- check_mixed_design(fr4, "rating", "rater_id", "face_id")
str(des[1:4])

faux documentation built on April 20, 2023, 9:13 a.m.