simData: DATA SIMULATION

Description Usage Arguments Details Value Examples

View source: R/simData.R

Description

Simulates data to be used as an example for partialOR.

Usage

1
simData(n=50, m=2, rr=1.5, rseed = 123)

Arguments

n

number of independent observations

m

number of covariates

rr

common Odds Ratio

rseed

seed for the random number generator (default 123)

Details

The covariates are i.i.d. N(0,1) variables.

Value

Data frame with n columns and m+2 variables x,y,z1,...,zm; x, y are 0/1 binary variables and z's are the covariates.

Examples

1
2
dd <- simData(50, 2, 1.5, rseed=123)
head(dd)

partialOR documentation built on May 19, 2017, 11:18 a.m.

Search within the partialOR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.