sample_df: Sample Data for a Logistic Regression

Description Usage Format Details Examples

Description

Simulated data for testing/illustrating purposes. This data set can be used to test the package with a logistic regression model, as illustrated in the help of the pbugs function.

Usage

1

Format

A data.frame with 1000 observations and 4 variables:

x1

Binomial with prob = 0.7.

x2

Binomial with prob = 0.4.

x3

Normal with mean 40 and sd 10 (mean centered).

y

Binomial with prob plogis(tcrossprod(cbind(rep(1, N), x1, x2, x3), t(c(-2, 1.3, 1.05, .04)))).

Details

The data creation script is in the /data-raw directory.

Examples

1

fisabio/pbugs documentation built on Nov. 11, 2019, 2:10 p.m.