命令 | 演示教程内容(自学专用) | 附件 |
aboutreg | 回归分析 |
aboutreg.rar
(8.6 KB)
本附件包括:
|
bstrap /bstut | 自助法 |
bstrap.rar
(6.2 KB)
本附件包括:
|
pyramid | 人口金字塔 |
pyramid.rar
(6.98 KB)
|
randwalk /tt7 | 随机游走 |
randwalk.rar
(3.42 KB)
本附件包括:
|
sqc1/pca | 计算工序能力指数Process Capability Indices(PCIs) |
sqc1.zip
(4.47 KB)
本附件包括:
|
- findit aboutreg
- findit bstut
- findit pyramid
- findit sqc1
- findit randwalk
| 安装使用: 1.command窗口输入cd或pwd 2.将附件解压到当前工作路径 2.在command窗口输入 tutorial 命令名 3.然后按Enter键不断执行 |
|
注:
pyramid.tut在运行时出现codebook错误:解决方法1.运行aboutreg.tut后再运行,
解决方法2.使用如下代码(即保存为do文档代替演示,见附件)
解决方法3.对原命令进行修改,遇错后继续执行(见9楼):
- qui use fyn,clear
- gen sex = 1 in 3
- replace sex = 2 in 4
- label define sexlbl 1 male 2 female
- label value sex sexlbl
- drop if sex == .
- gen id = _n
- reshape long c, i(id) j(age)
- replace age = age-2
- drop if age > 99 | age < 0
- gen count = real(c)
- gen males = -real(c) if sex == 1
- gen females = real(c) if sex == 2
- replace females = real(c[_n+100]) if sex == 1
- drop in 101/200
- gen lbl = age
- replace lbl = . if mod(age,10) > 0
- hbar males females, l(lbl)
- gen str2 slbl = string(lbl)
- replace slbl = " " if lbl == .
- hbar males females, l(slbl) lap /*
- */ xla(-4250,-4000,-3000,-2000,-1000,0,1000,2000,3000,4000,4250) /*
- */ ttick t1(Demographic composition, 1998) t2(Funen County, Denmark)/*
- */ barfrac(0.85) xline(-1000,-2000,-3000,0,1000,2000,3000) saving(pyramid,replace)
- gsort -age
- more
- hbar males females, l(slbl) lap /*
- */ xla(-4250,-4000,-3000,-2000,-1000,0,1000,2000,3000,4000,4250) /*
- */ ttick t1(Demographic composition, 1998) t2(Funen County, Denmark)/*
- */ barfrac(0.85) xline(-1000,-2000,-3000,0,1000,2000,3000) saving(pyramid,replace)
- more
- gen dif = males - (-females)
- label var dif "Male Female "
- hbar dif, l(slbl) lap /*
- */ xla(-500,-250,0,250,500) t2(Diffence N males - N of females) /*
- */ ttick t1(Female preponderance with age) /*
- */ barfrac(0.85) xline(-250,0,250,500)
命令 | 作者 |
| abooutreg | Stanislav Kolenikov |
| pyramid | Jens M.Lauritsen: (v1.02) |
| randwalk | Albert Verbeek/Jeroen Weesie |
| bstrap | Stanislav Kolenikov |
| pca/sqc1 | Sutaip L. C. Saw and Teck Wong Soon |



雷达卡




京公网安备 11010802022788号







