gen_dat: Data Generate

Description Usage Arguments Value Examples

Description

This a a simple function to create some test data for our model. The model generate the dat set is that:

y = ∑_{i = 0}^p β_i x_i + e

Usage

1
gen_dat(n = 100, beta = c(1, 1))

Arguments

n

A integer that gives the sample size

beta

A vector gives the coeficients of the true model

Value

This function returns a list of two element y and X

Examples

1
gen_dat(n = 100, beta = c(1,1))

HeyangGong/estcondmin documentation built on May 19, 2019, 12:40 a.m.