View
/*Model regresji liniowej*/ clear all
set obs 10000
scalar a0 = -3
scalar a1 = 10
scalar a2 = 40
scalar sigma = 2
gen x1 = uniform()
gen x2 = uniform()
drawnorm e
gen y = a0 + a1*x1 + a2*x2 + sigma*e