Learn R Programming

POPInf (version 1.0.0)

sim_data: Simulate the data for testing the functions

Description

sim_data function for the calculation of the matrix A

Usage

sim_data(r = 0.9, binary = FALSE)

Value

simulated data

Arguments

r

imputation correlation

binary

simulate binary outcome or not