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
Interpreting multilevel mixed-effects linear regressionHi, I am doing medical research and I am currently facing some challenges. I have received help fr…
Margins of an interaction after xtlogit, reDear all, I run into an apparently (at least, for me) strange result. I have a longitudinal (even if…
Interaction terms giving error "factor variables may not contain noninteger values"Hi, I have data of rainfall for each state and year, and I am explaining it based on the size of th…
Rolling Window Regression CAPMHello Together I would like to do a rolling window regression (i.e. explain the returns of the funds…
LoopHello Stata-Community, I have a varlist called 'surgery' containing numbers from 1-5. I would like …
Subscribe to:
Post Comments (Atom)
0 Response to Need help
Post a Comment