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