The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Title: Comparison of Dependent Intraclass Correlation Coefficients
Version: 1.1.0
Maintainer: Josep Lluis Carrasco <jlcarrasco@ub.edu>
Depends: R (≥ 4.5)
Imports: nlme, dplyr, Deriv, MASS, furrr, future, progressr,parallelly, bbmle, mvtnorm
Suggests: cccrm
Description: Provides methods for testing the equality of dependent intraclass correlation coefficients (ICCs) estimated using linear mixed-effects models. Several of the implemented approaches are based on the work of Donner and Zou (2002) <doi:10.1111/1467-9884.00324>.
License: GPL-2 | GPL-3 [expanded from: GPL (≥ 2)]
LazyData: true
Encoding: UTF-8
RoxygenNote: 7.3.3
NeedsCompilation: no
Packaged: 2025-12-10 12:15:12 UTC; jlcarrasco
Author: Josep Lluis Carrasco [aut, cre], Gonzalo Peon Pena [aut]
Repository: CRAN
Date/Publication: 2025-12-16 14:30:06 UTC

iccCompare: Comparison of Dependent Intraclass Correlation Coefficients

Description

iccCompare: Tools for Comparing Dependent Intraclass Correlation Coefficients.

Provides functions to test the equality of dependent ICCs using various methods.

Details

See the package DESCRIPTION file for more information.

Author(s)

Maintainer: Josep Lluis Carrasco jlcarrasco@ub.edu

Authors:


Tests the equality of dependent ICCs using the likelihood ratio test (LRT)

Description

Tests the equality of dependent ICCs using the likelihood ratio test (LRT)

Usage

ICC_LR_test(data, ry = "y", rind = "ind", rtype = "type", optimizer = "nlminb")

Arguments

data

A data frame with (at least) three columns: the outcome, the subject and the setting identifiers.

ry

Character string. The outcome variable.

rind

Character string. The subject identifier.

rtype

Character string. The setting identifier.

optimizer

Optimization function to use. For further details see mle2

Details

The null hypothesis of equality of dependent ICCs is tested using the likelihood ratio test (LRT) proposed in Donner and Zou (2002).

Value

The output is an object of class htest with the following components:

References

Donner, A. and Zou, G. (2002). Testing the equality of dependent intraclass correlation coefficients. Journal of the Royal Statistical Society: Series D (The Statistician), 51(3):367–379

Examples


sin_res<-ICC_LR_test(sin_data,ry="Sinuosity",rind="id",rtype="Section")



Fits the linear mixed model to estimate the dependent ICCs

Description

Fits the linear mixed model to estimate the dependent ICCs

Usage

fit_model_dep_icc(dataset, ry, rind, rtype, warnings = TRUE)

Arguments

dataset

A data frame with (at least) three columns: the outcome, the subject and the setting identifiers.

ry

Character string. The outcome variable.

rind

Character string. The subject identifier.

rtype

Character string. The setting identifier.

Value

An object of class lme.


Computes the confidence interval for an ICC

Description

Computes the confidence interval for an ICC

Usage

ic_icc(icc, se, alpha = 0.05, m, N)

Arguments

icc

Numeric. The intraclass correlation value.

se

Numeric. The variance of the icc estimate

alpha

Numeric. Significance level. Default to 0.05.

m

Numeric. Number of replicates.

N

Numeric. number of subjects.

Details

Confidence intervals are constructed using asymptotic methods assuming a Normal distribution. The implemented methods include: the asymptotic Normal approach, Fisher's Z transformation, and the Konishi-Gupta transformation.


Tests the equality of dependent ICCs

Description

Tests the equality of dependent ICCs

Usage

icc_dep_test(
  data,
  ry,
  rind,
  rtype,
  alpha = 0.05,
  Wald = FALSE,
  WL = 1:2,
  Boot = FALSE,
  nboot = 500,
  Perm = FALSE,
  nperm = 100,
  parallel = TRUE,
  workers = 15,
  future_seed = NULL,
  progress = TRUE
)

Arguments

data

A data frame with (at least) three columns: the outcome, the subject and the setting identifiers.

ry

Character string. The outcome variable.

rind

Character string. The subject identifier.

rtype

Character string. The setting identifier.

alpha

Numeric. Significance level. Default to 0.05.

Wald

Logical. Should the Wald test be run? Default is FALSE

WL

Vector of length two. Which pair of settings should be compared using the Wald test? The first two settings are the default.

Boot

Logical. Should bootstrap be run? Default is FALSE.

nboot

Numeric. Number of bootstrap resamples. Default is 500.

Perm

Logical. Should permutations test be run? Default value is FALSE.

nperm

Numeric. Number of permutations. Default value is 100.

parallel

Logical. Use parallel computation? Default value is TRUE.

workers

Numeric. Number of cores used in parallelization. Default value is 15.

future_seed

Logical/Integer. The seed to be used for parallellization. Further details in furrr_options.

progress

Logical. If TRUE a progress bar is created while computing bootstrap and permutations. Default value is TRUE

Details

The variance components required for ICC estimation are obtained using a linear mixed-effects model that accounts for correlations across settings. The null hypothesis of equality between dependent ICCs is evaluated through the following methods:

- Wald test based on Fisher’s Z and Konishi–Gupta transformations, using either asymptotic or bootstrap standard errors;

- Chi-square test with asymptotic or bootstrap standard errors;

- Permutation test.

Value

The output is a list with the following components:

Examples

sin_res_b<-icc_dep_test(sin_data,ry="Sinuosity",rind="id",rtype="Section",alpha=0.05,Wald=TRUE,
WL=1:2,)


sin_res<-icc_dep_test(sin_data,ry="Sinuosity",rind="id",rtype="Section",alpha=0.05,Wald=TRUE,
                     WL=1:2,Boot=TRUE,nboot=500,Perm=TRUE,nperm=100,
                     parallel=TRUE,workers=15,future_seed = NULL,progress=TRUE)



dia_res<-icc_dep_test(cccrm::bpres,ry="DIA",rind="ID",rtype="METODE",alpha=0.05,Wald=TRUE,
WL=1:2,Boot=TRUE,nboot=500,Perm=TRUE,nperm=100,
parallel=TRUE,workers=15,future_seed = NULL,progress=TRUE)




Sinuosity data

Description

A data frame containingthe sinuosity index from 90 trajectories

Usage

sin_data

Format

A data frame containingt he sinuosity index from 388 trips of 36 gulls

Sinuosity

Sinuosity index

id

Subject identifier

Section

Time section where the trip started: Day or Night

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.