Learn R Programming

nbpInference (version 1.0.3)

generate.data.dose: Generate example data with five covariates

Description

This function creates some example data using the data generation process described in simulation 1 of frazier2024biasnbpInference. The dataframe contains a treatment variable Z, outcome variable Y, and five covariates X1,...,X5.

Usage

generate.data.dose(N)

Value

an N x 7 matrix containing treatment, outcome, and covariates.

Arguments

N

Number of observations to simulate, which should be a positive whole number.

See Also

Other data generation: generate.data.dose2()

Examples

Run this code
generate.data.dose(N = 100)

Run the code above in your browser using DataLab