showCalcICC: Calculate ICC for Provided Data

View source: R/functions.R

showCalcICCR Documentation

Calculate ICC for Provided Data

Description

Calculate either ICC2 or ICC3 on the provided data, possibly print the results and return them.

Usage

showCalcICC(
  fmddf,
  expr = NULL,
  resh = NULL,
  showData = TRUE,
  showICC = TRUE,
  lmer = FALSE
)

Arguments

fmddf

A reshaped data frame containing FMD data as produced by showGetData.

expr

An expression defining the subset of data. If left at the default NULL, no subset of the data is created, but he data is merely reshaped.

resh

Character length one. What type of reshape should be applied to the output. Possible values are 'inter' and 'intra'.

showData

Logical, if the input-data should be printed as well. Defaults to TRUE.

showICC

Logical, if the calculated ICC should be printed. Defaults to TRUE.

lmer

Logical. Should the lmer function from packakge lme4 be used for calculating the ICC via package psych.

Value

An (invisible) data frame containing the results of the ICC calculation.

CAVE

It is the users responsibility to decide if ICC2 or ICC3 is appropriate for the provided data input.

Examples

## Not run: 
XXX

## End(Not run)

bpollner/fmdenq documentation built on March 27, 2022, 4:26 p.m.