stata考試復(fù)習(xí)題庫_第1頁
stata考試復(fù)習(xí)題庫_第2頁
stata考試復(fù)習(xí)題庫_第3頁
stata考試復(fù)習(xí)題庫_第4頁
stata考試復(fù)習(xí)題庫_第5頁
已閱讀5頁,還剩20頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、例2-1 從某單位1999年的職工體檢資料中獲得101名正常成年女子的血清總膽固醇()的測量結(jié)果如下,試編制頻數(shù)分布表。2.354.213.325.354.174.132.784.263.584.344.844.414.783.953.923.583.664.283.263.502.704.614.752.913.914.594.192.684.524.913.183.684.833.873.953.914.154.554.803.414.123.955.084.533.923.585.353.843.603.514.063.073.554.233.574.833.523.844.503.96

2、4.503.274.523.194.593.753.984.134.263.633.875.713.304.734.175.133.784.573.803.933.783.994.484.284.065.265.253.985.033.513.863.023.704.333.293.254.154.364.953.003.26例題2-1(ex2-1.dta):. sum x variable | obs mean std. dev. min max-+- x | 101 4.029505 .6592183 2.35 5.71. di r(max)-r(min)3.3600001. gen gr

3、oup=int(x-2.30)/0.30)*0.30+2.3. tab group group | freq. percent cum.-+- 2.3 | 1 0.99 0.99 2.6 | 3 2.97 3.96 2.9 | 6 5.94 9.90 3.2 | 8 7.92 17.82 3.5 | 18 17.82 35.64 3.8 | 19 18.81 54.46 4.1 | 17 16.83 71.29 4.4 | 12 11.88 83.17 4.7 | 9 8.91 92.08 5 | 5 4.95 97.03 5.3 | 2 1.98 99.01 5.6 | 1 0.99 100

4、.00-+- total | 101 100.00例2-2 用直接法計(jì)算例2-1某單位名正常成年女子的血清總膽固醇的均數(shù)例2-3 利用表2-1計(jì)算101名正常成年女子的血清總膽固醇均數(shù)。第2、3題了解即可,可以用最簡單的方法求出:比如 su,tabstat等例2-4 某地5例微絲蚴血癥患者治療7年后用間接熒光抗體試驗(yàn)測得其抗體滴度倒數(shù)分別為,求幾何均數(shù)。例題2-4(ex2-4.dta):. means x variable | type obs mean 95% conf. interval-+- x | arithmetic 5 54 -21.32307 129.3231 | geometr

5、ic 5 34.82202 9.715194 124.8121 | harmonic 5 24.24242 . . -missing values in confidence interval(s) for harmonic mean indicate that confidence interval is undefined for corresponding variable(s).consult reference manual for details.例2-5 69例類風(fēng)濕關(guān)節(jié)炎(ra)患者血清e(cuò)bv-vca-lgg抗體滴度的分布見表2-5第(1)、(2)欄,求其平均抗體滴度。表2-5

6、 69例ra患者血清e(cuò)bv-vca-lgg抗體測定結(jié)果 抗體滴度人數(shù) 滴度倒數(shù) 1: 101: 201: 401: 801: 1601: 3201: 6401: 128043 10 10 11 15 1421020408016032064012801.00001.30101.60211.90312.20412.50512.80623.10724.00003.903016.021019.031024.245137.576539.28686.2144合 計(jì) 69150.2778例題2-5(ex2-5.dta):. means x fw=f variable | type obs mean 95%

7、conf. interval-+- x | arithmetic 69 280.8696 212.754 348.9851 | geometric 69 150.6411 110.9425 204.545 | harmonic 69 64.84581 47.14289 103.8391 -例2-6 7名病人患某病的潛伏期分別為天,求其中位數(shù)。例題2-6(ex2-6.dta):. centile x - binom. interp. - variable | obs percentile centile 95% conf. interval-+- x | 7 50 5 2.314286 13.8

8、例2-7 8名患者食物中毒的潛伏期分別為小時(shí),求其中位數(shù)。例題2-7(ex2-7.dta):. centile x - binom. interp. - variable | obs percentile centile 95% conf. interval-+- x | 8 50 4 1.675 17.925例2-8 試計(jì)算表2-2某醫(yī)院1123名產(chǎn)后出血孕婦人工流產(chǎn)次數(shù)的中位數(shù)。表2-2 某醫(yī)院1123名產(chǎn)后出血孕婦人流次數(shù)的分布人流次數(shù)產(chǎn)后出血人數(shù)累計(jì)頻數(shù) 累計(jì)頻率(%)(1)(2)(3)(4)040240235.80133073265843118108296.

9、35427110998.75511112099.73631123100.00合計(jì)1123例題2-8(ex2-8.dta):. tab x fw=f x | freq. percent cum.-+- 0 | 402 35.80 35.80 1 | 330 29.39 65.18 2 | 232 20.66 85.84 3 | 118 10.51 96.35 4 | 27 2.40 98.75 5 | 11 0.98 99.73 6 | 3 0.27 100.00-+- total | 1123 100.00. expand f(1116 observations created). centi

10、le x - binom. interp. - variable | obs percentile centile 95% conf. interval-+- x | 1123 50 1 1 1例2-10 某地118名鏈球菌咽喉炎患者的潛伏期頻數(shù)表見表2-5第(1)、(2)欄,試分別求中位數(shù)及第、第百分位數(shù)。表2-5 118名鏈球菌咽喉炎患者的潛伏期天 數(shù)人數(shù), 累計(jì)頻數(shù) 累計(jì)頻率(%)(1)(2)(3)(4)12443.424172117.836325344.948247765.360189580.5721210790.784511294.996411698.31082118100.0例題2

11、-10(ex2-10.dta):. tab x fw=f x | freq. percent cum.-+- 12 | 4 3.39 3.39 24 | 17 14.41 17.80 36 | 32 27.12 44.92 48 | 24 20.34 65.25 60 | 18 15.25 80.51 72 | 12 10.17 90.68 84 | 5 4.24 94.92 96 | 4 3.39 98.31 108 | 2 1.69 100.00-+- total | 118 100.00例2-11 試計(jì)算下面三組同齡男孩的身高均數(shù)和極差。甲組: ,;乙組: ,;丙組: , 。例2-13

12、續(xù)例2-11,計(jì)算三組資料的標(biāo)準(zhǔn)差。例題2-11、2-13(ex2-11.dta):. sum x1-x3 variable | obs mean std. dev. min max-+- x1 | 5 100 7.905694 90 110 x2 | 5 100 3.162278 96 104 x3 | 5 100 2.915476 96 104例2-12 續(xù)例2-10。已知=,=,計(jì)算名鏈球菌咽喉炎患者潛伏期的四分位數(shù)間距。例題2-12(ex2-10.dta):tabstat x fw=f, st(iqr) 直接求出四分位間距或者tabstat x fw=f, st(q) 求出p25 p5

13、0 p75例2-15 對例2-1,已計(jì)算出名正常成年女子的血清總膽固醇均數(shù),標(biāo)準(zhǔn)差。試估計(jì)該單位:正常女子血清總膽固醇在以下者占正常女子總?cè)藬?shù)的百分比;在4.005.00之間者占正常女子總?cè)藬?shù)的百分比;在以上者各占正常女子總?cè)藬?shù)的百分比。例題2-15(ex2-1.dta):. sum x variable | obs mean std. dev. min max-+- x | 101 4.029505 .6592183 2.35 5.71recode x (min/4=1) (4.01/5=2) (5.01/max=3), gen(group)tab group同時(shí)求出三個(gè)比例例2-16 由例

14、2-1資料估計(jì)正常女子血清總膽固醇的95%的參考值范圍例題2-16(ex2-1.dta):. sum x variable | obs mean std. dev. min max-+- x | 101 4.029505 .6592183 2.35 5.71. di r(mean)-1.96*r(sd)2.7374371. di r(mean)+.96*r(sd)4.6623546例3-1 若某市1999年18歲男生身高服從均數(shù)為167.7cm,標(biāo)準(zhǔn)差為5.3cm的正態(tài)分布。從該正態(tài)分布n(167.7, 5.32)cm總體中隨機(jī)抽樣100次即共抽取樣本g=100個(gè),每次樣本含量=10人,得到每

15、個(gè)樣本均數(shù)及標(biāo)準(zhǔn)差如圖3-1和下表3-1所示。167.41, 2.74165.56, 6.57168.20, 5.36®®nj=10m=167.7cms=5.3cmx1,x2,x3,¼xi,¼100個(gè)表3-1 n(167.7, 5.32)總體中100個(gè)隨機(jī)樣本的、和95%cl(nj=10)樣本號(hào)95%cl樣本號(hào)95%cl1167.412.74165.45169.3751168.473.91165.67171.272165.566.57160.86170.2652165.953.76163.26168.643168.205.36164.37172.0353

16、168.875.77164.74173.004166.674.81163.24170.11*54169.532.07168.05171.005164.895.41161.02168.7655166.105.58162.11170.106166.364.50163.14169.5856167.204.56163.94170.477166.164.04163.27169.0557170.507.66165.02175.988169.115.71165.02173.1958166.444.93162.91169.979167.178.26161.27173.0859168.684.52165.451

17、71.9110166.135.24162.38169.8760168.406.95163.43173.3711167.716.42163.12172.3161171.216.30166.70175.7212168.685.93164.44172.9262170.334.34167.23173.4413166.833.69164.19169.4763169.037.38163.75174.3114169.624.81166.18173.0664167.634.58164.36170.9015166.953.64164.35169.5565168.663.33166.27171.0416170.2

18、94.91166.78173.8066168.842.78166.85170.8317169.205.72165.11173.3067169.315.31165.51173.1118167.652.79165.65169.6568168.464.81165.02171.9019166.515.39162.65170.3669168.605.48164.68172.52*20163.283.19161.00165.5770168.475.05164.86172.0921166.294.95162.75169.8471165.685.19161.97169.4022167.655.27163.88

19、171.4272165.688.22159.80171.5623167.644.61164.35170.9473168.034.89164.53171.5324172.617.74167.07178.1574169.375.00165.79172.9425166.654.12163.70169.5975169.168.36163.18175.1426165.194.41162.04168.34*76171.274.99167.71174.8427168.807.68163.31174.3077168.364.50165.14171.5828167.992.58166.14169.8378168

20、.503.55165.96171.0429168.413.43165.95170.8679168.085.33164.27171.9030167.757.53162.36173.1380165.514.71162.14168.88*31164.254.30161.17167.3381167.593.73164.93170.2632166.425.19162.71170.13*82171.124.40167.98174.2733166.904.41163.74170.0583165.925.11162.26169.5834166.774.34163.66169.8884167.864.44164

21、.69171.0435165.775.34161.95169.5985167.436.15163.03171.8336164.126.63159.38168.8686167.906.13163.51172.2837169.834.20166.82172.8487167.596.33163.06172.1238165.164.01162.29168.0288167.744.60164.45171.0339166.596.20162.15171.0389167.408.27161.49173.3240165.653.56163.10168.2090167.186.00162.89171.48411

22、65.724.17162.74168.7191166.433.87163.66169.2142166.227.44160.90171.5492166.624.08163.70169.5443167.716.12163.33172.0993166.304.84162.83169.7644167.255.24163.50170.9994169.705.26165.94173.4545165.695.91161.46169.9295169.176.32164.65173.6946169.065.65165.03173.1096167.896.07163.54172.2347168.766.14164

23、.36173.1597167.486.03163.16171.7948168.644.54165.39171.8998169.934.80166.50173.3749167.723.82164.99170.4599169.405.57165.42173.3950170.394.15167.42173.35100165.695.09162.06169.33*表示該樣本資料算得的可信區(qū)間未包含已知總體均數(shù)167.7cm例題3-1:. drop _all. set seed 050322. set obs 10obs was 0, now 10. quietly for num 1/100:gen

24、varx=invnorm(uniform()*5.3+167.7. format var* %9.2f. ci var* variable | obs mean std. err. 95% conf. interval-+- var1 | 10 167.23 1.53 163.78 170.69 var2 | 10 164.70 1.97 160.24 169.17 var3 | 10 165.39 1.67 161.61 169.16 var4 | 10 168.49 2.12 163.70 173.27 var5 | 10 169.38 1.37 166.28 172.48 var6 |

25、10 166.84 1.66 163.07 170.60 var7 | 10 167.51 1.21 164.79 170.24 var8 | 10 167.09 1.84 162.93 171.24 var9 | 10 167.06 1.64 163.36 170.77 var10 | 10 167.21 1.82 163.11 171.32 var11 | 10 167.01 1.85 162.84 171.18 var12 | 10 167.19 1.99 162.67 171.70 var13 | 10 168.04 1.76 164.07 172.02 var14 | 10 168.

26、68 1.28 165.80 171.57 var15 | 10 167.12 1.95 162.72 171.52 var16 | 10 168.29 1.52 164.86 171.72 var17 | 10 165.97 2.11 161.19 170.75 var18 | 10 164.30 1.72 160.42 168.18 var19 | 10 168.97 0.92 166.89 171.05 var20 | 10 167.53 1.31 164.57 170.49 var21 | 10 165.98 1.21 163.24 168.71 var22 | 10 166.99 1

27、.77 162.98 170.99 var23 | 10 166.98 1.25 164.15 169.80 var24 | 10 167.64 1.86 163.43 171.85 var25 | 10 163.26 1.03 160.93 165.59 var26 | 10 167.96 1.17 165.30 170.61 var27 | 10 166.20 2.64 160.23 172.17 var28 | 10 168.23 1.62 164.57 171.89 var29 | 10 167.10 1.81 163.00 171.21 var30 | 10 165.99 1.76

28、162.01 169.97 var31 | 10 169.32 2.59 163.46 175.17 var32 | 10 168.70 1.84 164.54 172.85 var33 | 10 165.80 1.18 163.14 168.47 var34 | 10 169.07 1.12 166.55 171.60 var35 | 10 166.59 1.65 162.87 170.32 var36 | 10 165.32 2.35 160.01 170.63 var37 | 10 169.29 1.36 166.22 172.36 var38 | 10 167.59 1.15 164.

29、99 170.18 var39 | 10 167.71 1.79 163.65 171.77 var40 | 10 169.70 2.06 165.05 174.36 var41 | 10 167.52 1.90 163.23 171.82 var42 | 10 166.11 1.74 162.16 170.05 var43 | 10 166.45 1.48 163.09 169.80 var44 | 10 168.09 0.98 165.87 170.30 var45 | 10 167.14 1.46 163.85 170.43 var46 | 10 169.69 1.63 165.99 1

30、73.38 var47 | 10 165.67 1.55 162.17 169.18 var48 | 10 165.29 1.99 160.79 169.78 var49 | 10 167.99 1.88 163.73 172.24 var50 | 10 167.58 2.18 162.65 172.51 var51 | 10 165.19 1.44 161.93 168.45 var52 | 10 169.19 1.51 165.76 172.62 var53 | 10 168.37 1.66 164.62 172.12 var54 | 10 167.13 1.75 163.16 171.1

31、0 var55 | 10 167.01 1.72 163.12 170.90 var56 | 10 166.02 1.89 161.74 170.30 var57 | 10 169.41 1.89 165.13 173.69 var58 | 10 169.13 2.55 163.35 174.90 var59 | 10 165.51 1.41 162.32 168.70 var60 | 10 165.71 2.17 160.81 170.61 var61 | 10 167.46 1.62 163.80 171.12 var62 | 10 168.41 1.70 164.56 172.27 va

32、r63 | 10 168.06 1.98 163.59 172.54 var64 | 10 167.63 2.38 162.25 173.00 var65 | 10 168.22 2.38 162.83 173.61 var66 | 10 171.20 1.69 167.39 175.02 var67 | 10 166.51 1.61 162.88 170.14 var68 | 10 169.31 1.31 166.34 172.29 var69 | 10 164.97 1.53 161.52 168.42 var70 | 10 169.08 1.44 165.82 172.35 var71 | 10 168.69 2.03 164.10 173.28 var72 | 10 168.44 1.72 164.54 172.34 var73 | 10 167.77 2.15 162.91 172.64 var74 | 10 171.81 1.07 169.38 174.24 var75 | 10 168.29 1.37 165.20 171.38 var76 | 10 166.58 1.83 162.44 170.72 var77

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論