names(tt)
library(FactomineR)
library(FactoMineR)
mtt <- PCA(tt[,c(1,5,15)],quali.sup=thx)
mtt <- PCA(tt[,c(1,5,15)],quali.sup=tt$thx)
str(tt)
mtt <- PCA(tt[,c(1,5,15)],quali.sup=tt$thx)
?PCA
mtt <- PCA(tt[,c(1,5,15)])
plot(mtt,inv="var")
.plot.PCA
?plot.PCA
plot(mtt,inv="var",habillage=tt$thx)
plot(mtt,inv="var",habillage=17)
tt$ac.txa <- ifelse(tt$thx=="oui",1,0)
names(tt)
mtt <- PCA(tt[,c(1,5,15)],quanti.sup=18)
mtt <- PCA(tt[,c(1,5,15)],quanti.sup=18)
mtt <- PCA(tt[,c(1,5,15)],quanti.sup=tt$ac.txa)
mtt <- PCA(tt[,c(1,5,15)],quanti.sup=tt$ac.txa)
grp
graphics.off()
mtt <- PCA(tt[,c(1,5,15)],quanti.sup=tt$ac.txa)
graphics.off()
plot(mtt,habillage=18)
plot(mtt,habillage=17)
tt$trait <- as.character(tt$thx)
mtt <- PCA(tt[,c(1,5,15)])
grp
graphics.off()
plot(mtt,habillage=19)
boxplot(tt$Operative.Time~tt$thx,col=grey)
boxplot(tt$Operative.Time~tt$thx,col="grey")
boxplot(tt$Operative.Time~tt$thx,col="grey",notch=T)
library()
library(violplot)
library(vioplot)
vioplot(tt$Operative.Time~tt$thx,col="grey",notch=T)
vioplot(tt$Operative.Time~tt$thx,col="grey")
vioplot(tt$Operative.Time~tt$thx)
vioplot(tt$Operative.Time,tt$thx)
?vioplot
vioplot(tt$Operative.Time)
vioplot(tt$Operative.Time[tt$thx=="oui"],tt$Operative.Time[tt$thx=="non"])
boxplot(tt$Operative.Time~tt$thx,col="grey",notch=T)
tt$thx <- relevel(tt$thx,"oui")
boxplot(tt$Operative.Time~tt$thx,col="grey",notch=T)
boxplot(tt$Operative.Time~tt$thx,col="grey",notch=N,las=1,ylab="min",xlab="ac.tranexamique",main="Temps oprératoire & Ac.tranexamique"
)
boxplot(tt$Operative.Time~tt$thx,col="grey",notch=N,las=1,ylab="min",xlab="ac.tranexamique",main="Temps oprératoire & Ac.tranexamique")
boxplot(tt$Operative.Time~tt$thx,col="grey",las=1,ylab="min",xlab="ac.tranexamique",main="Temps oprératoire & Ac.tranexamique"
)
t.test(tt$Operative.Time~tt$thx,var.equal=T)
ext(1.5,250,(p=0,004),cex=2)
ext(1.5,250,"p=0,004",cex=2)
text(1.5,250,"p=0,004",cex=2)
pdf("tpsop_actxa.pdf",width=12,height=9)
t.test(tt$Operative.Time~tt$thx,var.equal=T)
boxplot(tt$Operative.Time~tt$thx,col="grey",las=1,ylab="min",xlab="ac.tranexamique",main="Temps oprératoire & Ac.tranexamique"
)
text(1.5,250,"p=0,004",cex=2)
graphics.off()
boxplot(tt$Operative.Time~tt$thx,col="grey",las=1,ylab="min",xlab="ac.tranexamique",main="Temps oprératoire & Ac.tranexamique")
text(1.5,250,"p=0,004",cex=1.5)
pdf("tpsop_actxa.pdf",width=12,height=9)
boxplot(tt$Operative.Time~tt$thx,col="grey",las=1,ylab="min",xlab="ac.tranexamique",main="Temps opératoire & Ac.tranexamique")
text(1.5,250,"p=0,004",cex=1.5)
graphics.off()
layout(matrix(1:2))
boxplot(tt$Operative.Time~tt$thx,col="grey",las=1,ylab="min",xlab="ac.tranexamique",main="Temps opératoire & Ac.tranexamique")
scatterplot(tt$Operative.Time,tt$total.drain)
scatterplot(tt$Operative.Time,tt$total.drain,ellipse=T)
())
q()
y
install.packages("car")
q()
y
library(car)
summary(tt)
names(tt)
names(tt)[7] <- "implant.texture"
names(tt)
tt$implant.vol <- tt$implant.volume.left+tt$implant.volume.right
tt$implant.vol <- tt$implant.volume.left+tt$implant.volume.right>
names(tt)
ll <- glm(txa~age+implant.vol+implant.shape+implant.texture + operative.time + mean.operative.blood.pressure + drain.fluid.vol.total)
ll <- glm(txa~age+implant.vol+implant.shape+implant.texture + operative.time + mean.operative.blood.pressure + drain.fluid.vol.total,data = tt, family = "binomial")
sumamry(ll)
summary(ll)
tt <- debut("TXA Final.csv")
summary(tt)
levels(tt$implant.texture)
tt$implant.texture[tt$implant.texture==""] <- NA
summary(tt)
tt$implant.texture <- factor(tt$implant.texture)
summary(tt)
tt <- tt[,-2]
tt$vol.implant <- tt$implant.volume.left + tt$implant.volume.right
names(tt)
ll <- glm(txa~age+vol.implant+implant.shape+implant.texture+operative.time+mean.operative.blood.pressure+drain.fluid.vol.total,data = tt, family = "binomial")
summary(ll)
ll <- glm(drain.fluid.vol.total~txa+age+vol.implant+implant.shape+implant.texture+operative.time+mean.operative.blood.pressure,data = tt, family = "binomial")
ll <- lm(drain.fluid.vol.total~txa+age+vol.implant+implant.shape+implant.texture+operative.time+mean.operative.blood.pressure,data = tt, family = "binomial")
ll <- lm(drain.fluid.vol.total~txa+age+vol.implant+implant.shape+implant.texture+operative.time+mean.operative.blood.pressure,data = tt)
summary(ll)
step(ll)
ll <- lm(drain.fluid.vol.total~txa+age+implant.shape+implant.texture+operative.time+mean.operative.blood.pressure,data = tt)
summary(ll)
ll <- lm(drain.fluid.vol.total~txa+age+implant.shape+operative.time+mean.operative.blood.pressure,data = tt)
summary(ll)
q()
y
install.packages("missMDA")
q()
y
install.packages("missMDA")
library(missMDA)
estim_ncpFAMD(tt)
tta <- imputeFAMD(tt,0)
tta <- tta$completeObs
names(tta)
ttx <- tt[,-c(3,49,10)]
estim_ncpFAMD(ttx)
tta <- imputeFAMD(ttx,0)
tta <- tta$completeObs
mtt <- FAMD(tta)
library(FactoMineR)
mtt <- FAMD(tta)
grp
graphic.off
graphic.off()
graphics.off
graphics.off()
names(tta)
names(tt)
ttx <- tt[,c(3,4,9,10)]
names(ttx)
ttx <- tt[,-c(3,4,9,10)]
names(ttx)
tta <- imputeFAMD(ttx,0)
mtt <- FAMD(tta)
tta <- tta$completeObs
mtt <- FAMD(tta)
graphics.off()
sumamry(mtt)
summary(mtt)
str(ttx)
cc <- cyt(ttx$age,c(0,40,60,80,2000))
cc <- cut(ttx$age,c(0,40,60,80,2000))
cc
table(cc)
sumamry(tt$age)
summary(tt$age)
cc <- cut(ttx$age,c(0,30,40,50,2000))
table(cc)
cc <- cut(ttx$age,c(0,30,40,2000))
ttx$age <- cut
str(ttx)
ttx$age <- cc
str(ttx)
sumamry(tt$operative.time)
summary(tt$operative.time)
cc <- cut(ttx$operative.time,c(0,100,150,200,2000))
table(cc)
cc <- cut(ttx$operative.time,c(0,120,180,2000))
table(cc)
ttx$operative.time <- cc
summary(tt$mean.operative.blood.pressure)
cc <- cut(ttx$mean.operative.blood.pressure,c(0,65,70,2000))
table(cc)
tt$mean.operative.blood.pressure <- cc
sumamry(ttx$vol.implant)
summary(ttx$vol.implant)
cc <- cut(ttx$vol.implant,c(0,550,650,750,2000))
table(cc)
cc <- cut(ttx$vol.implant,c(0,600,700,2000))
table(cc)
ttx$vol.implant <- cc
mtt <- MCA(ttx)
sumamry(ttx)
summary(ttx)
cc <- cut(ttx$mean.operative.blood.pressure,c(0,65,70,2000))
ttx$mean.operative.blood.pressure <- cc
cc <- cut(ttx$drain.fluid.vol.total,c(0,50,100,200,2000))
table(cc)
ttx$drain.fluid.vol.total <- cc
summary(ttx)
cc <- cut(ttx$hospital.stay,c(0,1,3,100))
table(cc)
cc <- cut(ttx$hospital.stay,c(0,1,2,100))
table(cc)
ttx$hospital.stay <- cc
mtt <- MCA(ttx)
graphics.off()
sumamry(ttx)
summary(ttx)
summary(tt)
cc <- cut(tt$drain.fluid.vol.total)
cc <- cut(tt$drain.fluid.vol.total,c(-1,20,100,200,20000))
table(cc)
cc <- cut(tt$drain.fluid.vol.total,c(-1,50,150,20000))
table(cc)
cc <- cut(tt$drain.fluid.vol.total,c(-1,50,100,20000))
table(cc)
cc <- cut(tt$drain.fluid.vol.total,c(-1,50,150,20000))
ttx$drain.fluid.vol.total <- cc
mtt <- MCA(ttx)
graphics.off()
sumamry(ttx)
summary(ttx)
q()
y
ls()
source("../scripts_R/tableau_descriptif.R")
tabd(tt)
ls()
summary(tta)
tt$mean.operative.blood.pressure <- tta$mean.operative.blood.pressure
source("../scripts_R/tableau_descriptif.R")
tabd(tt)
source("../scripts_R/tableau_descriptif.R")
tabd(tt)
source("../scripts_R/tableau_comp.R")
tabmulti(tt,tt$drain.fluid.vol.total)
t.test(tt$drain.fluid.vol.total~tt$txa,var.equal=T)
aggregate(tt$drain.fluid.vol.total by=lis(tt$txa),FUN=var)
aggregate(tt$drain.fluid.vol.total, by=list(tt$txa),FUN=var)
53533/31002
names(tt)
txab <- c(tt$txa,tt$txa)
pertesb <- c(tt$drain.fluid.vol.right,tt$drain.fluid.vol.left)
t.test(pertesb~ttxab)
t.test(pertesb~t=xab)
t.test(pertesb~txab)
aggregate(tt$drain.fluid.vol.total, by=list(tt$txa),FUN=sd)
aggregate(pertesb, by=list(txab),FUN=sd)
summary(txab)
txab
class(txab)
class(tt$txa)
tt$txa
plot(mtt)
summary(ll)
library(epiDisplay)
install.packages("epiDisplay")
library(epiDisplay)
logistic.display(ll,simplified=T)
library(xtable)
xtabel(logistic.display(ll,simplified=T)$table)
xtable(logistic.display(ll,simplified=T)$table)
summary(ll)
dim(R)
dim(tt)
summary(tt)
tabmulti(tt,tt$txa)
llx <- lm(tt$drain.fluid.vol.total~tt$txa*tt$operative.time)
summary(llx)
llx <- lm(tt$drain.fluid.vol.total~tt$txa/tt$operative.time)
summary(llx)
library(ggplot2)
install.packages("ggplot2")
library(ggplot2)
pdf("taxdrain1.pdf",width=12,height=9)
graphics.off()
library(FactoMineR)
HCPC(mtt)
graphics.off()
htt <- HCPC(mtt)
summary(htt)
htt <- HCPC(mtt)
htt <- HCPC(mtt)
graphics.off()
summary(htt)
htt$desc.axes
htt$desc.ind
htt$desc.var
q()
y
