Learn R Programming

rstanemax (version 0.1.9)

exposure.response.sample.binary: Sample simulated data for exposure-response for binary endpoint

Description

Sample simulated data for exposure-response for binary endpoint

Usage

exposure.response.sample.binary

Arguments

Format

A data frame with columns:

conc

Simulated exposure

y_logit

Simulated logit(p)

y_prob

Simulated p

y

Simulated event (1 or 0)

y_cov_logit

Simulated logit(p) for model with covariate

y_cov_prob

Simulated p for model with covariate

y_cov

Simulated event (1 or 0) for model with covariate

sex_num

1 or 0

sex

female or male

Examples

Run this code
exposure.response.sample

Run the code above in your browser using DataLab