Description Usage Arguments Value Examples
View source: R/dataGenerator.R
Generate data for multiple linear regression (using the standard uniform distribution)
1 | dataGenerator(n, beta = c(0, 1, 2), sigma = 1)
|
n |
number of data points |
beta |
parameter vector |
sigma |
standard deviation of the Gaussian noise |
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)
1 | dataset <- dataGenerator(10, 1:3, 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.