linear_data {spatgeom}R Documentation

Linear example

Description

Generate data points with a linear relationship.

Usage

linear_data(n = 100, a = -3, b = 3)

Arguments

n

Number of data points.

a, b

Lower and upper bound of the uniform distribution.

Value

A data frame with three variables. Variable 'y = 0.6 * x1 + 0.3 * x2

Examples

xy <- linear_data(n = 30, a = -1, b = 1)

[Package spatgeom version 0.3.0 Index]