Stata's command to decentralize variables
Publish: 2021-05-01 21:37:27
1. According to Hou Jietai: the so-called centralization refers to subtracting the mean value of a variable from its expected value. For sample data, each observation value of a variable is subtracted from the sample average value of the variable, and the transformed variable is centralized
for your question, subtract the mean from each measurement.
for your question, subtract the mean from each measurement.
2. Only iron pick can dig ore and water in the mine cave. It's better to bring some wood and a fire into the mine cave. You can only knock round stones by the river to have a small chance to proce iron ore. The Iron pick is not useful for iron ore. It's the same to decide what equipment you wear. The iron spear and crossbow must be available, and then according to the cold and hot conditions of the mine cave you want to go to at that time
3. In Stata, the matrix and variable can be freely transformed. The commands are mkmat and SVMAT respectively. Regression is easier. Just use Reg to do it
4. Standard treatment is required to be used for standardizaization processing of variations (x-value value)/divided divided divided criteria differences (x-value value)/cbr/br//>method1 - gengengengen
method2 - gengengen
- own
- y: x1 x1 x1 x2 x2 x2 m m
, in interexchange between x2 x2 and mbr /br />, in order of interinterchange between x2 and mmm2 and its crew of its operating between x2 and 2 and mmm1, need to be standardized by X2 and mm2, and re-resource its crMethod br/>1 -- gen
. sum x2 x2 <2
<
< x2 > 8438 = 55.11448 = 15.1841 = 16 < 111
. gen x21 = (x2-55.11448)/15.1841
. sum x21 x21 <21br
<
< x21 < 8438 > 1.44e-07 <99997 <2.576016 <3.680529
-x21 is a new variation after standardization egen x22=std(x2)
. sum x22 <22
<
method2 - gengengen
- own
- y: x1 x1 x1 x2 x2 x2 m m
, in interexchange between x2 x2 and mbr /br />, in order of interinterchange between x2 and mmm2 and its crew of its operating between x2 and 2 and mmm1, need to be standardized by X2 and mm2, and re-resource its crMethod br/>1 -- gen
. sum x2 x2 <2
<
< x2 > 8438 = 55.11448 = 15.1841 = 16 < 111
. gen x21 = (x2-55.11448)/15.1841
. sum x21 x21 <21br
<
< x21 < 8438 > 1.44e-07 <99997 <2.576016 <3.680529
-x21 is a new variation after standardization egen x22=std(x2)
. sum x22 <22
<
5. xi:reg GDP i.reg1 i.reg2 i.reg3 i.reg4 i.reg5 i.reg6 i.reg7 i.reg8 i.reg9
xi:表示自动生成虚拟变量 i.变量名
xi:表示自动生成虚拟变量 i.变量名
6.
1. First define the value label. There are many ways, data | data utilities | label utilities | manage value labels or with the command label define

7. For example, your variable is called reg1 for 2010. You also have a variable called year, which is the number of years corresponding to each variable. Then, with the following command, you can generate a new variable only if the corresponding year variable is what you want
8. nearest、linear、cubic、spline对peaks函数的插值效果图,函数命令如下:
[x y z]=peaks(10);
mesh(x,y,z)
[xi,yi]=meshgrid(-3:.1:3,-3:.1:3);
n=interp2(x,y,z,xi,yi,'nearest');
l=interp2(x,y,z,xi,yi,'linear');
c=interp2(x,y,z,xi,yi,'cubic');
s=interp2(x,y,z,xi,yi,'spline');
subplot(2,2,1);mesh(xi,yi,n);
subplot(2,2,2);mesh(xi,yi,l);
subplot(2,2,3);mesh(xi,yi,c);
subplot(2,2,4);mesh(xi,yi,s);
[x y z]=peaks(10);
mesh(x,y,z)
[xi,yi]=meshgrid(-3:.1:3,-3:.1:3);
n=interp2(x,y,z,xi,yi,'nearest');
l=interp2(x,y,z,xi,yi,'linear');
c=interp2(x,y,z,xi,yi,'cubic');
s=interp2(x,y,z,xi,yi,'spline');
subplot(2,2,1);mesh(xi,yi,n);
subplot(2,2,2);mesh(xi,yi,l);
subplot(2,2,3);mesh(xi,yi,c);
subplot(2,2,4);mesh(xi,yi,s);
9. In accordance with the provisions of the archives management measures, the archives in our own hands can not be collected. The job market is right
this kind of thing happens a lot. There are two ways for you: one is to ask for the leader of the talent market (usually the director of the Bureau of human resources and social security) to explain the reason why the school didn't send it to the talent market. The premise is that the archives must be intact and have not been opened
the second trouble point, but don't look for relationships. A normal school will keep the files of graates for two years. Or find the school, put the files back to the school, and then open a file transfer letter from the talent market to the school, and the school will help you send the files back. The cost of this is out of your own pocket. It doesn't cost much
in addition, there is no other way. It can only be kept by yourself, which has a great impact on the public examination.
this kind of thing happens a lot. There are two ways for you: one is to ask for the leader of the talent market (usually the director of the Bureau of human resources and social security) to explain the reason why the school didn't send it to the talent market. The premise is that the archives must be intact and have not been opened
the second trouble point, but don't look for relationships. A normal school will keep the files of graates for two years. Or find the school, put the files back to the school, and then open a file transfer letter from the talent market to the school, and the school will help you send the files back. The cost of this is out of your own pocket. It doesn't cost much
in addition, there is no other way. It can only be kept by yourself, which has a great impact on the public examination.
Hot content
