sim1data: A simulated dataset for fitting case-crossover models.

Description Usage Format

Description

These data were simulated from a multinomial distribution of the form described in the case crossover paper, with true additive predictor eta = 3 *(exposure^2 - .5^2). It is good for testing the fitting of case crossover models and learning the API for prior specification and linear constraints.

Usage

1

Format

A tibble with 3,596 rows and 6 columns:

exposure

The covariate used for the simulations

eta

The true value of the additive predictor, for comparison

prob

The corresponding true probability of case == 1

subject

Subject id, to be used as the strata variable

exposure_binned

The exposure covariate binned into 50 bins, for fitting RW2 models


awstringer1/casecrossover documentation built on March 11, 2021, 4:41 a.m.