<div>Olá,<br><br>Estou tentanto construir curvas de Kaplan-Meiers estratificadas por grupos mas estou tendo um problema.<br><br>Meu database (chamado de Data), possui a varíavel tempo-ate-evento (TEMPOPPC), o evento (PPC), e os grupos (IMC, ARISCAT e TIPO). Estou usando a seguinte função: <br><br>plot(survfit(Surv(as.numeric(Data$TEMPOPPC), is.logical(Data$PPC))~Data$IMC), ylab="Proportion of Patients", xlab="Follow-Up (Days)")<br><br>Entretanto, o R retorna o seguinte problema:<br><br>Erro em Surv(as.numeric(Data$TEMPOPPC), is.logical(Data$PPC)) : <br>  Time and status are different lengths<br><br>Alguem sabe como resolver? Ainda, como consigo inserir o intervalo de confiança de 95% para cada curva?<br><br>Desde já agradeço,<br>​<br></div><div>Ary Serpa Neto, MD, MSc, PhD Hospital Israelita Albert Einstein, São Paulo, Brazil (http://www.einstein.br): Department of Critical Care Medicine & Jewish Institute of Education and Research Albert Einstein (http://www.einstein.br/pesquisa) The PROtective VEntilation NETwork (www.provenet.eu) http://publicationslist.org/a.serpa_neto http://lattes.cnpq.br/0254664157557375</div>