lm.generated: Randomly generated multivariate linear model data

Description Usage Format Details

Description

A dataset for estimation of linear models

Usage

1

Format

A list with two components:

X

Matrix of independent variables

y

Vector of dependent variable observations

Details

Generated with the following code:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
set.seed(100)

N <- 100
k <- 4
sd <- 10

X <- cbind(1, matrix(runif(N * (k - 1), -10, 10), ncol = k - 1))
beta <- runif(k, -5, 5)
y <- X 
y <- c(y)

tkmckenzie/ikde documentation built on May 13, 2019, 9:53 p.m.