dstudy: Conduct a dependability study

Description Usage Arguments Examples

View source: R/dstudy.R

Description

Generates the variance components and the relative magnitude (percent of total variance) of each variance component.

Usage

1
dstudy(x, n, unit)

Arguments

x

A gstudy object

n

A vector with facets named

unit

The label for the unit of measurement

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## One facet design
one.facet <- lmer(Score ~ (1 | Participants) + (1 | Items), data = efData)
one.facet.gstudy <- gstudy(one.facet)
dstudy(one.facet.gstudy, n = c("Items" = 4), unit = "Participants")

## Two facet design
two.facet <- lmer(scores ~ (1 | students) + (1  | prompts) + (1 | raters) + (1 | students:prompts) +  (1 | students:raters) + (1 | prompts:raters), data = writing)
two.facet.gstudy <- gstudy(two.facet)
dstudy(two.facet.gstudy, n = c("raters" = 2, "prompts" = 5), unit = "students")

## Two facet fixed design wtih prompt
gstudy.fixed.prompt <- gstudy(two.facet, fixed = "prompts")
dstudy(gstudy.fixed.prompt, n = c("raters" = 2), unit = "students")

cddesja/hemp documentation built on April 7, 2021, 9:24 p.m.