Thiago Gentil Ramires - Departamento de Estatística (UEM
Thiago Gentil Ramires - Departamento de Estatística (UEM
Thiago Gentil Ramires - Departamento de Estatística (UEM
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
ekm = survfit(Surv(tempo,censura)~sexo,type="kaplan-meier")<br />
masculino=0<br />
feminino=1<br />
sort(tempo)<br />
mu = 0.9897<br />
gama= 1.0104<br />
beta0= 4.892<br />
beta1= -0.4462<br />
S1 = exp(-(tempo/(exp(beta0+beta1*masculino)))^gama)<br />
S2 = exp(-(tempo/(exp(beta0+beta1*feminino)))^gama)<br />
plot(ekm,lty=c(1,4),xlab="t",ylab="S(t)")<br />
lines(tempo,S1,type="l",lty=2,col="blue")<br />
lines(tempo,S2,type="l",lty=2,col="red")<br />
legend(250,0.8, lty=c(1,2),c("Masculino", "Feminino"), bty="n", cex=0.8)<br />
text(150.5,0.93,c("Ajuste da variavel Sexo"),bty="n",cex=1.2)<br />
AntiHBS<br />
ekm = survfit(Surv(tempo,censura)~anthbs,type="kaplan-meier")<br />
false=1<br />
true=0<br />
sort(tempo)<br />
mu = 0.8951<br />
gama= 1.1172<br />
beta0= 5.1288<br />
beta1= -0.9557<br />
S1 = exp(-(tempo/(exp(beta0+beta1*false)))^gama)<br />
S2 = exp(-(tempo/(exp(beta0+beta1*true)))^gama)<br />
plot(ekm,lty=c(1,4),xlab="t",ylab="S(t)")<br />
lines(tempo,S1,type="l",lty=2,col="blue")<br />
lines(tempo,S2,type="l",lty=2,col="red")<br />
legend(250,0.8, lty=c(1,2),c("False", "True"), bty="n", cex=0.8)<br />
text(150.5,0.93,c("Ajuste da variavel AntiHBS"),bty="n",cex=1.2)<br />
Pressão<br />
ekm = survfit(Surv(tempo,censura)~pres,type="kaplan-meier")<br />
false=1<br />
true=0<br />
sort(tempo)<br />
mu = 0.9781<br />
gama= 1.0224<br />
beta0= 4.2038<br />
beta1= 0.6054<br />
S1 = exp(-(tempo/(exp(beta0+beta1*false)))^gama)<br />
S2 = exp(-(tempo/(exp(beta0+beta1*true)))^gama)<br />
plot(ekm,lty=c(1,4),xlab="t",ylab="S(t)")<br />
lines(tempo,S1,type="l",lty=2,col="blue")<br />
lines(tempo,S2,type="l",lty=2,col="red")<br />
legend(250,0.8, lty=c(1,2),c("False", "True"), bty="n", cex=0.8)<br />
text(150.5,0.93,c("Ajuste da variavel Pressão"),bty="n",cex=1.2)<br />
64