R語(yǔ)言ToothGrowth 牙齒生長(zhǎng)數(shù)據(jù)分析報(bào)告 (附代碼數(shù)據(jù))_第1頁(yè)
R語(yǔ)言ToothGrowth 牙齒生長(zhǎng)數(shù)據(jù)分析報(bào)告 (附代碼數(shù)據(jù))_第2頁(yè)
R語(yǔ)言ToothGrowth 牙齒生長(zhǎng)數(shù)據(jù)分析報(bào)告 (附代碼數(shù)據(jù))_第3頁(yè)
R語(yǔ)言ToothGrowth 牙齒生長(zhǎng)數(shù)據(jù)分析報(bào)告 (附代碼數(shù)據(jù))_第4頁(yè)
R語(yǔ)言ToothGrowth 牙齒生長(zhǎng)數(shù)據(jù)分析報(bào)告 (附代碼數(shù)據(jù))_第5頁(yè)
已閱讀5頁(yè),還剩2頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、R語(yǔ)言ToothGrowth牙齒生長(zhǎng)數(shù)據(jù)分析報(bào)告牙齒生長(zhǎng)分析探索性數(shù)據(jù)分析我們將直接加載數(shù)據(jù)并理解其結(jié)構(gòu)data(ToothGrowth)glimpse(ToothGrowth)#Observations:60#Variables:3#$len4.2,11.5,7.3,5.8,6.4,10.0,11.2,11.2,5.2,7.0,16.#$suppVC,VC,VC,VC,VC,VC,VC,VC,VC,VC,VC,VC,VC,VC,.#$dose0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,1.0,1.table(ToothGrowth$dose)#0.512#

2、202020levels(ToothGrowth$supp)#1OJVC劑量有三個(gè)價(jià)值,這將作為一個(gè)因素更好地為我們服務(wù)。ToothGrowth$dose-as.factor(ToothGrowth$dose)讓我們來(lái)分析不同劑量水平的成牙質(zhì)細(xì)胞的長(zhǎng)度的分布。doselen-ggplot(ToothGrowth,aes(x=dose,y=len)doselen-doselen+geom_violin(aes(color=dose),trim=F)+ggtitle(Lengthofodontoblastsvs.DoseLevel)+theme(plot.title=element_text(hj

3、ust=0.5)+xlab(VitaminCDoselevel)+ylab(Lengthofodontoblasts)doselendoselensupp-doselen+facet_wrap(supp)+ggtitle(Lengthofodontoblastsvs.DoseLevelwithDeliverymethods)+theme(plot.title=element_text(hjust=0.5)+xlab(VitaminCDoselevel)+ylab(Lengthofodontoblasts)doselensupp匸匚D1%group_by(supp)%summarize(mean

4、_length=mean(len)#Atibble:2x2#suppmean_length#1OJ20.66333【原創(chuàng)】R語(yǔ)言案例數(shù)據(jù)分析報(bào)告論文(附代碼數(shù)據(jù))有問(wèn)題到淘寶找“大數(shù)據(jù)部落”就可以了#2VC16.96333ToothGrowth%groupby(supp)%summarize(maxlength=max(len)#Atibble:2x2#suppmaxlength#1OJ30.9#2VC33.9ToothGrowth%group_by(supp)%summarize(var_length=var(len)#Atibble:2x2#suppvar_length#1OJ43.633

5、44#2VC68.32723SoOJhashigheraveragelengthofodontoblasts,butdoesnthavemaximumvalue.Atthesametime,OJhasmuchlessvariance.Hypothesisteststocomparetoothgrowthbysuppanddose.Nowwellrunmultiplehypothesistestswithdifferentvaluesofsuppanddoseandlaterdetermineifwecanrejectthenullhypothesis.Wellstartwithdifferen

6、tvaluesofdoselevels.t.test(lendose,paired=F,var.equal=F,data=subset(ToothGrowth,dose%in%c(0.5,1)#WelchTwoSamplet-test#data:lenbydose#t=-6.4766,df=37.986,p-value=1.268e-07#alternativehypothesis:truedifferenceinmeansisnotequalto0#95percentconfidenceinterval:#-11.983781-6.276219#sampleestimates:#meanin

7、group0.5meaningroup1【原創(chuàng)】R語(yǔ)言案例數(shù)據(jù)分析報(bào)告論文(附代碼數(shù)據(jù))有問(wèn)題到淘寶找“大數(shù)據(jù)部落”就可以了#10.60519.735t.test(lendose,paired=F,var.equal=F,data=subset(ToothGrowth,dose%in%c(1,2)#WelchTwoSamplet-test#data:lenbydose#t=-4.9005,df=37.101,p-value=1.906e-05#alternativehypothesis:truedifferenceinmeansisnotequalto0#95percentconfidence

8、interval:#-8.996481-3.733519#sampleestimates:#meaningroup1meaningroup2#19.73526.100t.test(lendose,paired=F,var.equal=F,data=subset(ToothGrowth,dose%in%c(0.5,2)#WelchTwoSamplet-test#data:lenbydose#t=-11.799,df=36.883,p-value=4.398e-14#alternativehypothesis:truedifferenceinmeansisnotequalto0#95percent

9、confidenceinterval:#-18.15617-12.83383#sampleestimates:#meaningroup0.5meaningroup2#10.60526.100Lookingattheconfidenceintervalsandp-valuesforthe3conductedt-tests,wecaneasilyrejectthenullhypothesis.Nowweturnourattentiontosuppvalues.t.test(lensupp,paired=F,var.equal=F,data=subset(ToothGrowth,dose=0.5)#

10、WelchTwoSamplet-test#data:lenbysupp#t=3.1697,df=14.969,p-value=0.006359#alternativehypothesis:truedifferenceinmeansisnotequalto0#95percentconfidenceinterval:#1.7190578.780943#sampleestimates:#meaningroupOJmeaningroupVC#13.237.98t.test(lensupp,paired=F,var.equal=F,data=subset(ToothGrowth,dose=1)#Welc

11、hTwoSamplet-test#data:lenbysupp#t=4.0328,df=15.358,p-value=0.001038#alternativehypothesis:truedifferenceinmeansisnotequalto0#95percentconfidenceinterval:#2.8021489.057852#sampleestimates:#meaningroupOJmeaningroupVC#22.7016.77t.test(lensupp,paired=F,var.equal=F,data=subset(ToothGrowth,dose=2)#WelchTw

12、oSamplet-test#data:lenbysupp#t=-0.046136,df=14.04,p-value=0.9639#alternativehypothesis:truedifferenceinmeansisnotequalto0#-3.798073.63807#sampleestimates:95percentconfidenceinterval:#26.0626.14meaningroupOJmeaningroupVCHerefordoselevel2,wecantrejectthenullhypothesissincetheconfidenceintervalcontains0.ConclusionsandassumptionsLookingattheconductedt-tests,wecanconcludethattoothgrowthispri

溫馨提示

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

最新文檔

評(píng)論

0/150

提交評(píng)論