Learn R Programming

crossurr (version 1.1.2)

sim_data: A simple function to simulate example data.

Description

A simple function to simulate example data.

Usage

sim_data(n, p)

Value

toy dataset used for demonstrating the methods with outcome y, treatment a, covariates x.1, x.2, and surrogates s.1, s.2, ...

Arguments

n

number of simulated observations

p

number of simulated variables