Skip to contents

linearDataGen() generates simulated linear line data (with equation info) and point data suitable for the drawr() function.

Usage

linearDataGen(y_int, slope, sigma, N = 30, x_min = 0, x_max = 20, conf_int = F)

Arguments

y_int

The y intercept of the line data.

slope

The slope of the true line data

sigma

The standard deviation of the line data.

N

The number of points to generate. (default: 30)

x_min

The minimum x value. (default: 0)

x_max

The maximum x value. (default: 20)

conf_int

If a 95% confidence interval should be generated for drawr() function. (default: FALSE)

Value

A list containing the generated point data and line data (with equation info).