| sim_data | R Documentation |
A simple function to simulate example data.
sim_data(n, p)
n |
number of simulated observations |
p |
number of simulated variables |
toy dataset used for demonstrating the methods with outcome y, treatment a, covariates x.1, x.2, and surrogates s.1, s.2, ...