dgenSimpleLinear: Data generating process for a simple linear regression

View source: R/dgenSimpleLinear.R

dgenSimpleLinearR Documentation

Data generating process for a simple linear regression

Description

Data generating process for a simple linear regression

Usage

dgenSimpleLinear(num.obs = 50, intercept = 2, treatment.effect = -4, seed = 1)

Arguments

num.obs

the number of observations to generate in the data set; defaults to 50 observations

intercept

the y-intercept of the linear model; defaults to 2

treatment.effect

the coefficient on the treatment indicator in the linear model; defaults to -4

seed

randomization seed; defaults to 1.

Value

a (num.obs x 2) data frame where column 1 is the dependent variable Y and column 2 is the treatment indicator D

Examples

dgenSimpleLinear(num.obs=50, intercept=2, treatment.effect=-4, seed=1)

johnsontr/entmax documentation built on July 2, 2022, 9:23 p.m.