hlr: A sample dataset for hierarchical linear regression

hlrR Documentation

A sample dataset for hierarchical linear regression

Description

A (probably artificial) dataset to introduce hierarchical linear gression model.

Usage

hlr

Format

A data frame with 100 observations and five variables.

happiness

The criterion or dependent variable.

age

A control variable.

gender

Another control variable, encoded as character with "Male" and "Female" values.

friends

A predictor variable.

pets

A predictor variable.

Source

Hierarchical linear regression (University of Virginia Library) https://data.library.virginia.edu/hierarchical-linear-regression/

Examples


hrl


jmsallan/BAdatasets documentation built on May 7, 2024, 11:45 a.m.