stata例题

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

例2-1从某单位1999年的职工体检资料中获得101名正常成年女子的血清总胆固醇(mmol/L)的测量结果如下,试编制频数分布表。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.964.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.26sumxdir(max)-r(min)gengroup=int((x-2.30)/0.30)*0.30+2.3tabgroup计算表101名正常成年女子的血清总胆固醇(mmol/L)的标准差。tabstatx,s(sd)对例2-1,已计算出101名正常成年女子的血清总胆固醇均数4.06Xmmol/L,标准差0.654Smmol/L。试估计该单位:①正常女子血清总胆固醇在4.00mmol/L以下者占正常女子总人数的百分比;②在4.00~5.00mmol/L之间者占正常女子总人数的百分比;③在5.00mmol/L以上者各占正常女子总人数的百分比。sumxrecodex(min/4=1)(4.01/5=2)(5.01/max=3),gen(group)tabgroup由例2-1资料估计正常成年女子血清总胆固醇的95%参考值范围。sumxdir(mean)-1.96*r(sd)dir(mean)+.96*r(sd)例3-3某地抽得正常成人200名,测得其血清胆固醇的均数为3.64mmol/L,标准差为1.20mmol/L,试估计该地正常成人血清胆固醇均数的95%可信区间。cii2003.641.20例2-4某地5例微丝蚴血症患者治疗7年后用间接荧光抗体试验测得其抗体滴度倒数分别为10,20,40,40,160,求几何均数。meansx例2-569例类风湿关节炎(RA)患者血清EBV-VCA-lgG抗体滴度的分布见表2-5第(1)、(2)栏,求其平均抗体滴度。表2-569例RA患者血清EBV-VCA-lgG抗体测定结果抗体滴度人数f滴度倒数XlgXlgfX⑴⑵⑶⑷⑸1:101:201:401:80431010102040801.00001.30101.60211.90314.00003.903016.021019.03101:1601:3201:6401:1280111514216032064012802.20412.50512.80623.107224.245137.576539.28686.2144合计69——150.2778meansx[fw=f]例2-67名病人患某病的潜伏期分别为2,3,4,5,6,9,16天,求其中位数。centilex例2-8试计算表2-2某医院1123名产后出血孕妇人工流产次数的中位数。表2-2某医院1123名产后出血孕妇人流次数的分布人流次数产后出血人数累计频数累计频率(%)(1)(2)(3)(4)040240235.80133073265.18223296485.843118108296.35427110998.75511112099.73631123100.00合计1123——tabx[fw=f]expandfcentilex例2-10某地118名链球菌咽喉炎患者的潜伏期频数表见表2-5第(1)、(2)栏,试分别求中位数及第25、第75百分位数。表2-5118名链球菌咽喉炎患者的潜伏期天数人数,f累计频数累计频率(%)(1)(2)(3)(4)12~443.424~172117.836~325344.948~247765.360~189580.572~1210790.784~511294.996~411698.3≥1082118100.0tabx[fw=f]例2-11试计算下面三组同龄男孩的身高(cm)均数和极差。甲组:9095100105110100cmX甲,1109020cmR甲;乙组:9698100102104100cmX乙,104968cmR乙;丙组:9699100101104100cmX丙,104968cmR丙。sumx1-x3例2-12续例2-10。已知25P=39.2,75P=67.7,计算118名链球菌咽喉炎患者潜伏期的四分位数间距。Tabstatx[fw=f],st(q)计算三组资料的标准差。sux1x2x3例3-4为了解甲氨蝶呤(MTX)对外周血IL-2水平的影响,某医生将61名哮喘患者随机分为两组。其中对照组29例(1n),采用安慰剂;试验组32例(2n),采用小剂量甲氨蝶呤(MTX)进行治疗。测得对照组治疗前IL-2的均数为20.10IU/ml(1X),标准差为7.02IU/ml(1S);试验组治疗前IL-2的均数为16.89IU/ml(2X),标准差为8.46IU/ml(2S)。问两组治疗前基线的IL-2总体均数相差有多大?ttesti2920.107.023216.898.46例3-5某医生测量了36名从事铅作业男性工人的血红蛋白含量,算得其均数为130.83g/L,标准差为25.74g/L。问从事铅作业工人的血红蛋白是否不同于正常成年男性平均值140g/L?ttestx=140ttesti36130.833325.74102140例3-6为比较两种方法对乳酸饮料中脂肪含量测定结果是否不同,随机抽取了10份乳酸饮料制品,分别用脂肪酸水解法和哥特里-罗紫法测定其结果如表3-5第(1)~(3)栏。问两法测定结果是否不同?表3-5两种方法对乳酸饮料中脂肪含量的测定结果(%)编号(1)哥特里-罗紫法(2)脂肪酸水解法(3)差值d(4)=(2)(3)10.8400.5800.26020.5910.5090.08230.6740.5000.17440.6320.3160.31650.6870.3370.35060.9780.5170.46170.7500.4540.29680.7300.5120.21891.2000.9970.203100.8700.5060.3642.724ttestx1=x2例3-7为研究国产四类新药阿卡波糖胶囊的降血糖效果,某医院用40名2型糖尿病病人进行同期随机对照试验。试验者将这些病人随机等分到试验组(用阿卡波糖胶囊)和对照组(用拜糖平胶囊),分别测得试验开始前和8周后的空腹血糖,算得空腹血糖下降值见表3-6,能否认为该国产四类新药阿卡波糖胶囊与拜糖平胶囊对空腹血糖的降糖效果不同?表3-6试验组和对照组空腹血糖下降值(mmol/L)试验组X1(n1=20)-0.70-5.602.002.800.703.504.005.807.10-0.502.50-1.601.703.000.404.504.602.506.00-1.40对照组X2(n2=20)3.706.505.005.200.800.200.603.406.60-1.106.003.802.001.602.002.201.203.101.70-2.00ttestx,by(group)例3-8在上述例3-7国产四类新药阿卡波糖胶囊的降血糖效果研究中,测得用拜糖平胶囊的对照组20例病人和用阿卡波糖胶囊的试验组20例病人,其8周时糖化血红蛋白HbA1c(%)下降值如表3-7。问用两种不同药物的病人其HbA1c下降值是否不同?表3-7对照组和试验组HbA1c下降值(%)分组nXS对照组201.461.36试验组201.130.70ttesti201.461.36201.130.70,unettesti201.461.36201.130.70,unew例3-9试用矩法对表3-1中计算机模拟抽样所得100个样本均数进行正态性检验。表3-1N(167.7,5.32)总体中100个随机样本的jX、jS和95%CL(nj=10)样本号jXjS95%CL样本号jXjS95%CL1167.412.74165.45169.3751168.473.91165.67171.272165.566.57160.86170.2652165.953.76163.26168.643168.205.36164.37172.0353168.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.45171.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.294.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.88171.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.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.59

1 / 8
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功