datageneration {latenetwork} | R Documentation |
Generate Artificial Data by Simulation
Description
The datageneration()
function generates artificial ring-network data
by simulation.
The function is used in the package vignette.
Usage
datageneration(n)
Arguments
n |
The sample size |
Value
A list containing the outcome vector, the treatment vector, the instrumental vector, and the true instrumental exposure vector, and the symmetric binary adjacency matrix.
Examples
latenetwork::datageneration(n = 2000)
[Package latenetwork version 1.0.1 Index]