sim_data {crossurr} | R Documentation |
A simple function to simulate example data.
Description
A simple function to simulate example data.
Usage
sim_data(n, p)
Arguments
n |
number of simulated observations |
p |
number of simulated variables |
Value
toy dataset used for demonstrating the methods with outcome y
, treatment a
, covariates x.1, x.2
, and surrogates s.1, s.2, ...
[Package crossurr version 1.1.1 Index]