Learn R Programming

iccTraj (version 1.0.4)

boot_ICC: Generates a bootstrap sample and estimates the ICC

Description

Generates a bootstrap sample and estimates the ICC

Usage

boot_ICC(X, nt, Bmat, indB)

Value

Data frame with the estimates of the ICC (r), the subjects' mean sum-of-squares (MSA), the between-subjects variance (sb), the total variance (st), and the within-subjects variance (se).

Arguments

X

Data frame with the pairwise distances

nt

Data frame with the number of trips by subject

Bmat

Matrix with subjects identifiers in the resamples

indB

Column in Bmat that geenrates the resample