reliability_analysis: Reliability Analysis

Description Usage Arguments Value Examples

View source: R/reliability_analysis.R

Description

reliability_analysis represents a wrapper function for the bmbstats function. reliability_analysis runs the bootstrap reliability analysis of the data data frame using estimator_function to return the estimators

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
reliability_analysis(
  data,
  trial1,
  trial2,
  SESOI_lower = SESOI_lower_reliability_func,
  SESOI_upper = SESOI_upper_reliability_func,
  estimator_function = reliability_estimators,
  control = model_control(),
  na.rm = FALSE
)

Arguments

data

Data frame

trial1

Character vector indicating column name in the data

trial2

Character vector indicating column name(s) in the data

SESOI_lower

Function or numeric scalar. Default is SESOI_lower_reliability_func

SESOI_upper

Function or numeric scalar. Default is SESOI_upper_reliability_func

estimator_function

Function for providing reliability estimators. Default is reliability_estimators

control

Control object returned from model_control function. Use boot_type, boot_samples, boot_strata, and confidence to setup bootstrap.

na.rm

Should NAs be removed? Default is FALSE

Value

Object of class bmbstats

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
data("agreement_data")

rel_analysis <- reliability_analysis(
  data = agreement_data,
  trial1 = "Practical_score.trial1",
  trial2 = "Practical_score.trial2",
  control = model_control(
    boot_type = "perc",
    boot_samples = 1000,
    seed = 1667
  )
)

rel_analysis

plot(rel_analysis)

mladenjovanovic/bmbstats documentation built on Aug. 5, 2020, 4:20 p.m.