View source: R/generate_data.R
generate_data | R Documentation |
This function performs generates
generate_data(n = 100, d = 3, type = "MAR well specified")
n |
The number of samples to return. |
d |
The dimension of samples to return. |
type |
The matrix of financed clients' labels |
This function generates data from a uniform(0,1) distribution, and generates labels y according to a logistic regression on this data with random -1/1 parameter for each coordinate (MAR well-specified), the square of this data (MAR misspecified), or this data and some additional feature (from U(0,1) as well - MNAR).
Dataframe containing features as x.1..d, labels as y.
Adrien Ehrhardt
Ehrhardt, A., Biernacki, C., Vandewalle, V., Heinrich, P. and Beben, S. (2018), Reject Inference Methods in Credit Scoring: a rational review,
# We simulate data from financed clients
generate_data(n = 100, d = 3, type = "MAR well specified")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.