R/ri_test2.R

#' Sample dataset 2 for testing the likelihood ratio test (LRT)
#'
#' Example data for testing the need for a random intercept. LRT results show that a random slope is not warranted.
#' @usage data(ri_test2)
#' @format A data frame with 3,000 observations from 30 groups and 4 variables:
#' \describe{
#'   \item{y}{The outcome variable.}
#'   \item{w1}{A level-2 predictor.}
#'   \item{x1}{A level-1 predictor}
#'   \item{group}{The cluster identifier}
#' }
"ri_test2"
flh3/MLMusingR documentation built on Jan. 29, 2024, 6:46 p.m.