clear all
set more off
mat drop _all
pause off
set graphics on
// Control Pannel
local beta "no"
local quizPrep "no"
// Student RollNumbers Here!
#delimit ;
global student
22020141
22020123
22020342
22110021
22020063
22020607
22020511
21020252
21110063
21020428
21100318
22020171
22020431
22110302
21100236
21020126
22020454
22020250
20020550
22110053
22020632
21020515
22110104
22110006
22020374
21100107
21100214
22020165
21020086
22020354
22020293
22100153
21110246
22110097
22110083
21100042
21020407
22020304
22110217
22110261
22020503
21110233
22020429
20110290
21020125
21020565
22020618
21110181
22110230
21110138
21020507
22020409
22020271
22020499
22020481
22020551
21100001;
#delimit cr
if "`beta'" == "yes"{
foreach j of global student{
clear
set obs 100
set seed `j'
gen x = (round(rnormal(2.5 , 0.5), 0.1))
gen y = (round(10 - 0.5*x + rnormal(0 , 2), 0.1))
reg y x
mat A = e(b)
mat C = (nullmat(C)\(A[1,1]))
mat drop A
}
svmat C
}
kdensity C
THERE IS SOMETHING WRONG WITH THIS CODE AND I CAN'T FIGURE IT OUT.
Related Posts with Need help
Replacing values by group year in panel dataDear Stata users, I am working with a panel data set. I'm trying to see how government policies aff…
Help with creating a variable with lagged valuesHey guys, I am currently a final year student and i am writing my Economics dissertation on Oil pri…
Unit-root and Johansen- lack of normal distribution. Please help!I have a question concerning unit-root data and normal distribution. As an assignment, I am checking…
How compare categories from a one variable they are the same among 10 data sets.Hello everybody, I’m working whit 10 data sets from the household survey, and I want to know if in a…
Estimate risk for groupsCiao Here is the example using Stata data. Code: use http://www.stata-press.com/data/r13/drugtr …
Subscribe to:
Post Comments (Atom)
0 Response to Need help
Post a Comment