Learn R Programming

nbpInference (version 1.0.3)

generate.data.dose2: Generate sample data with six covariates

Description

This function creates some example data using the data generation process for the secondary set of simulations described in the supplementary materials of frazier2024biasnbpInference. The dataframe contains a treatment variable Z, outcome variable Y, and five covariate X1,...,X6

Usage

generate.data.dose2(N)

Value

an N x 8 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.dose()

Examples

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

Run the code above in your browser using DataLab