: 計算P-値
died<-mydata[mydata$disoutcome=="died"]
survived<-mydata[mydata$disoutcome=="recovered"]
mean_died<-sapply(died,mean,na.rm=T)
SD_died<-apply(died,2,sd,na.rm=T)
mean_survived<-sapply(survived,mean,na.rm=T)
SD_survived<-apply(survived,2,sd,na.rm=T)
はありがとうございます。
't.test()'関数や 'wilcox.test()'関数を使うだけで、Rはpのスコアを計算します。 –