commonItems.percent: Identify Percentage of Common Items for Several Groups

Description Usage Arguments Details Value Author(s) See Also Examples

Description

This function calculates the percentage of items that have been administered to two groups of persons.

Usage

1
commonItems.percent(dat, group.var, na = NA, xlsx = NULL)

Arguments

dat

A data frame with item responses and a grouping variable.

group.var

Name or column number of the group variable in dat

na

A character string indicating which value should be considered as not administered (missing by design)

xlsx

Optional: Full path of Excel file for results.

Details

dat must only contain the group variable and the items, if further variables are in dat they are treated as items. If group.var specifies more than two groups, pairwise group comparisons are performed.

Value

returns a data frame with common item percentage(s)

Author(s)

Martin Hecht

See Also

commonItems

Examples

1
2
3
data(science1)
d <- science1[ , c("version", science1.items)]
commonItems.percent(dat = d, group.var = "version", na = "mbd")

eatTools documentation built on May 2, 2019, 4:44 p.m.