Dear All,
I am trying to generate my own panel data. I know how to create purely cross sectional data:
Basically I create the GDP and can use regression commands to recover the true coeffcients. I would like to do the same thing but with panel data. Googling only led to the sample command which is used to sue a subsample of a given dataset, but I cannot find anything that helps me create (random) data based on a specified GDP.
Can anyone point me to the correct commands?
Thanks in advance!
Best,
I am trying to generate my own panel data. I know how to create purely cross sectional data:
Code:
clear set obs 10000 gen x1 = rnormal(1,2) gen x2= rnormal(0,3) gen eps = rnormal(0,4) gen y = 3*x1+2*x2+eps reg y x1 x2
Can anyone point me to the correct commands?
Thanks in advance!
Best,
Comment