dataGenerator: dataGenerator

Description Usage Arguments Value Examples

View source: R/dataGenerator.R

Description

Generate data for multiple linear regression (using the standard uniform distribution)

Usage

1
dataGenerator(n, beta = c(0, 1, 2), sigma = 1)

Arguments

n

number of data points

beta

parameter vector

sigma

standard deviation of the Gaussian noise

Value

a list containing the response vector Y (size n), a dataframe for explanatory variables X (size nxp) and the vector of Gaussian noise (size n)

Examples

1
dataset <- dataGenerator(10, 1:3, 2)

Jawad-Boulahfa/nnls2d documentation built on Sept. 3, 2020, 10:37 p.m.