dstudy_plot: Plots various D studies for one and two-facet design

Description Usage Arguments See Also Examples

View source: R/dstudy_plot.R

Description

Plots multiple d studies for one or two-facet design.

Usage

1
dstudy_plot(x, unit, facets, g_coef = T, bw = F)

Arguments

x

object of class mer returned from the lme4 function

unit

the name of the unit of measurement

facets

A list of length 1 (one-facet) or 2 (two-facet). If two-facet plot, then the second facet is the grouping variable.

g_coef

Plot the generalizability coefficent? If FALSE, plot the dependability coefficient.

bw

logical. Make the plot black and white? Default is FALSE.

See Also

dstudy

Examples

1
2
3
4
5
6
7
8
9
## One facet
one_facet <- lmer(Score ~ (1 | Participants) + (1 | Items), data = efData)
dstudy_plot(one_facet, unit = "Participants", facets = list(Items = c(8, 20, 30, 40)))
dstudy_plot(one_facet, unit = "Participants", facets = list(Items = c(8, 20, 30, 40)), g_coef = F)

## Two facet
two_facet <- lmer(score ~ (1 | child) + (1 | raters) + (1 | occasions) + (1 | child:raters) + (1 | child:occasions) + (1 | raters:occasions), data = swtab1.3)
dstudy_plot(two_facet, unit = "child", facets = list(raters = 1:4, occasions = 1:4))
dstudy_plot(two_facet, unit = "child", facets = list(raters = 1:4, occasions = 1:4), g_coef = F)

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