rho: Compute fraction of variance due to u_i

Description Usage Arguments Details Value Author(s) Examples

View source: R/rho.R

Description

Compute fraction of variance due to u_i

Usage

1
rho(fit)

Arguments

fit

A model fit with lmer (lme4).

Details

Note that in the output from summary(fit) the Std. Dev. column in the Random Effects section contains what STATA refers to as sigma_u and sigma_e. STATA also reports rho (fraction of variance due to u_i) but this is not given in the R output. The rho function computes this value.

Value

A number between 0 and 1. The fraction of variance due to u_i.

Author(s)

Jonah Gabry <jsg2201@columbia.edu>

Examples

1
rho(fit)

jgabry/QMSS_package documentation built on May 19, 2019, 7:18 a.m.