toydat: Simulated data for use with the HRR package.

toydatR Documentation

Simulated data for use with the HRR package.

Description

A dataset containing binary and categorical outcome variables, area identifiers, and categorical and continuous predictor variables. This data-set is a random sample from the post-stratification frame contained in toypsf

Usage

toydat

Format

A data frame with 800 rows and 12 variables:

area

An area identifier with 26 possible values from A-Z

k_1

A categorical predictor with 5 possible values a-e

k_2

A categorical predictor with 5 possible values f-j

k_3

A categorical predictor with 3 possible values k-m

x_1, x_2

Continuous (standard normal) predictors measured at area level

bin_mu

Latent utility for the binary outcome

bin_y

A binary outcome variable

cat_mu_red

Latent log utility for the categorical outcome, red option. Constant value of zero.

cat_mu_green

Latent log utility for the categorical outcome, green option

cat_mu_blue

Latent log utility for the categorical outcome, blue option

cat_y

A categorical outcome variable

blue

The count of individuals choosing blue in aggregate

green

The count of individuals choosing green in aggregate

red

The count of individuals choosing red in aggregate

Source

Original code is in the package's tools/ directory


chrishanretty/hrr documentation built on Oct. 23, 2024, 9:23 p.m.