sample_df: Sample Data for a Logistic Regression

sample_dfR Documentation

Sample Data for a Logistic Regression

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

sample_df

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

data(sample_df)

fisabio/pbugs documentation built on Jan. 28, 2024, 5:13 a.m.