linreg_data: Data sample for the linear regression example

linreg_dataR Documentation

Data sample for the linear regression example

Description

Data sample for the linear regression example

Usage

data(linreg_data)

Format

A data frame with 1000 rows, and 3 columns. Suitable for a simple linear regression with a dummy variable.

y

is the continuous dependent variable

gr

is the allocated arm of each subject, where 1 corresponds to treatment, and 0 to control

x_var

is the independent continuous variable

Author(s)

V. Vancak

Examples

data(linreg_data)

vancak/NNTcalculator documentation built on April 7, 2022, 3:48 a.m.