Please enable JavaScript.
Coggle requires JavaScript to display documents.
STATA - Coggle Diagram
STATA
data preprocessing
-
-
-
-
-
-
text data
encode province,generate(provID)
destring kid_num, replace force ignore("or more")
-
strpos(s1,s2) return the first position of s2 in s1
-
substr(s,n1,n2) 截取n1和n2位置之间(以1开头,闭区间)的字符串,如果n2是.,就表示取到最后
-
reshaping datasets
reshape long stub, i(i) j(j) stub是像转置的变量名的共同前缀,i就是保留不发生转置的变量;j就是我们想生成的新变量。也可以reshape wide ...
-
-
-
-
-
-
-
self study
-
learn more commands in class, use them with the help command
STATA
Data entry
with data editor, you can easily change the properties of your variables
-
-