toypsf: Simulated post-stratification frame for use with the HRR...

toypsfR Documentation

Simulated post-stratification frame for use with the HRR package.

Description

A dataset containing binary and categorical outcome variables, area identifiers, and categorical and continuous predictor variables. Samples from this dataset appear as toydata.

Usage

toypsf

Format

A data frame with 1,000,000 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

count

Post-stratification weight, or count of individuals with row values

...

Source

Original code is in the package's tools/ directory


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