prof_ci_icc: Profile Likelihood Confidence Interval for Intraclass...

Description Usage Arguments Details Value

View source: R/profile.R

Description

Compute confidence intervals for the intraclass correlation of a model fit of class merMod-class.

Usage

1
prof_ci_icc(x, level = 0.95, eps_max = 1e+06)

Arguments

x

A fitted merMod object from lmer.

level

Confidence level between 0 and 1. Default is .95.

eps_max

The maximum value that the upper limit can be. Default is 1e6.

Details

This function uses the uniroot function and determine the lower and upper limit by evaluating the profile deviance (for ML) or the -2 profile REML criterion. It works by obtaining the interval for θ = τ / σ and transforming the two limits.

The resulting interval is bounded by zero for its lower limit.

Value

A named numeric vector with two values showing the lower and upper limit of the intraclass correlation.


marklhc/bootmlm documentation built on April 20, 2018, 2:35 a.m.