datageneration: Generate Artificial Data by Simulation

View source: R/datageneration.R

datagenerationR 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)


latenetwork documentation built on Aug. 8, 2023, 5:09 p.m.