<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Prezados,<br>
      <br>
      <br>
      Alexadro e Daniel, agradeço.<br>
      Com relação a importar planilha com os dados, queria saber se é
      possível ser do excell, pois tentei com os comandos mas nao
      permitiu.<br>
      <br>
      Grata,<br>
      Ab<br>
       Ana<br>
      <br>
      Em 06/05/2013 19:37, Alexandro (Yahoo) escreveu:<br>
    </div>
    <blockquote
      cite="mid:1367879844.27504.YahooMailNeo@web120901.mail.ne1.yahoo.com"
      type="cite">
      <div style="color:#000; background-color:#fff; font-family:times
        new roman, new york, times, serif;font-size:12pt"><br>
        #Oi segue abaixo um exemplo, espero ter ajudado!<br>
        #Alexandro<br>
        <br>
        #modelo<br>
        tempo=c(40,30,20,10,5,45,35,25,15,5)<br>
        censura=c(1,1,1,1,1,1,1,0,1,1)<br>
        sexo=c("m","f","m","f","m","f","m","m","m","f")<br>
        doente=factor(c(1,1,0,0,0,0,1,1,1,1))<br>
        idade=c(20,30,40,50,60,25,35,45,55,65)<br>
        dados=data.frame(tempo,censura,sexo,doente,idade);dados<br>
        <br>
        require(survival)<br>
        .Survfit <- survfit(Surv(tempo, censura) ~ doente + sexo,
        conf.type="log", conf.int=0.95, type="kaplan-meier",
        error="greenwood", data=dados)<br>
        summary(.Survfit)<br>
        plot(.Survfit, col=1:4, lty=1:4, mark.time=TRUE)<br>
        legend("bottomleft", legend=c("0.f","1.f","0.m","1.m"),
        title="doente + sexo", col=1:4, lty=1:4, bty="n")#INTERACAO<br>
        <br>
        <div><span></span></div>
        <div><br>
          <blockquote style="border-left: 2px solid rgb(16, 16, 255);
            margin-left: 5px; margin-top: 5px; padding-left: 5px;">
            <div style="font-family: times new roman, new york, times,
              serif; font-size: 12pt;">
              <div style="font-family: times new roman, new york, times,
                serif; font-size: 12pt;">
                <div dir="ltr">
                  <hr size="1"> <font face="Arial" size="2"> <b><span
                        style="font-weight:bold;">De:</span></b> Ana
                    Luiza Cassin <a class="moz-txt-link-rfc2396E" href="mailto:pesquisaclinica@labcor.com.br"><pesquisaclinica@labcor.com.br></a><br>
                    <b><span style="font-weight: bold;">Para:</span></b>
                    <a class="moz-txt-link-abbreviated" href="mailto:r-br@listas.c3sl.ufpr.br">r-br@listas.c3sl.ufpr.br</a> <br>
                    <b><span style="font-weight: bold;">Enviadas:</span></b>
                    Segunda-feira, 6 de Maio de 2013 15:35<br>
                    <b><span style="font-weight: bold;">Assunto:</span></b>
                    [R-br] Survival<br>
                  </font> </div>
                <div class="y_msg_container"><br>
                  <div id="yiv7575956637">
                    <div> Prezados, <br>
                      <br>
                      <br>
                      Estou começando a usar or programa R e preciso
                      fazer curva de sobrevivência (Kaplan-Meier) sobre
                      o acompanhamento de pacientes ao longo do tempo.<br>
                      Gentileza, se alguém tiver conhecimento ou algum
                      tutorial sobre essa análise, o mais detalhado
                      possível, agradeceria.<br>
                      <br>
                      Atenciosamente,<br>
                      <div class="yiv7575956637moz-signature">-- <br>
                        <table style="border:none;" height="102"
                          width="450" border="0" cellpadding="0"
                          cellspacing="0">
                          <tbody>
                            <tr>
                              <td width="100" bgcolor="#ffffff"> <a
                                  moz-do-not-send="true" rel="nofollow"
                                  target="_blank"
                                  href="http://www.labcor.com.br/"><img
                                    moz-do-not-send="true" alt="Labcor"
                                    height="67" width="200" border="0"></a></td>
                              <td
style="padding-left:12px;font-family:Helvetica;font-size:12px;line-height:15px;"
                                width="220" bgcolor="#ffffff">
                                <div
                                  style="margin-top:2px;color:#000222;
font-size:13px;line-height:16px;font-weight:bold;
                                  font-style:italic;">Ana Luiza Cassin</div>
                                <div style="color:#111111;">Monitora de
                                  Pesquisa</div>
                                <div style="color:#111111;">Monitor
                                  Research</div>
                                <div
                                  style="color:#000CCC;font-size:11px;
                                  line-height:14px;">Tel.com.:
                                  +55(31)3313-1251</div>
                                <div
                                  style="color:#000CCC;font-size:11px;
                                  line-height:14px;">Tel.cel.:
                                  +55(31)9308-0072</div>
                                <div style="height:8px;line-height:8px;"> </div>
                                <div
                                  style="color:#000999;font-size:11px;
                                  line-height:15px;">Labcor</div>
                                <div
                                  style="font-size:11px;line-height:14px;"><a
                                    moz-do-not-send="true"
                                    rel="nofollow"
                                    style="color:#000AAA;text-decoration:none;"
                                    target="_blank"
                                    href="http://www.labcor.com.br/">www.labcor.com.br</a></div>
                              </td>
                            </tr>
                          </tbody>
                        </table>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
      </div>
    </blockquote>
    <div class="moz-signature">-- <br>
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <table style="border: none;" height="102" width="450" border="0"
        cellpadding="0" cellspacing="0">
        <tbody>
          <tr>
            <td width="100" bgcolor="#ffffff"> <a
                href="http://www.labcor.com.br/"><img
                  src="cid:part4.05060303.09030708@labcor.com.br"
                  alt="Labcor" height="67" width="200" border="0"></a></td>
            <td style="padding-left: 12px; font-family: Helvetica;
              font-size: 12px; line-height: 15px;" width="220"
              bgcolor="#ffffff">
              <div style="margin-top: 2px; color: #000222; font-size:
                13px; line-height: 16px; font-weight: bold; font-style:
                italic;">Ana Luiza Cassin</div>
              <div style="color: #111111; ">Monitora de Pesquisa</div>
              <div style="color: #111111; ">Monitor Research</div>
              <div style="color: #000CCC; font-size: 11px; line-height:
                14px;">Tel.com.: +55(31)3313-1251</div>
              <div style="color: #000CCC; font-size: 11px; line-height:
                14px;">Tel.cel.: +55(31)9308-0072</div>
              <div style="height: 8px; line-height: 8px;"> </div>
              <div style="color: #000999; font-size: 11px; line-height:
                15px;">Labcor</div>
              <div style="font-size: 11px; line-height: 14px;"><a
                  style="color: #000AAA; text-decoration: none;"
                  href="http://www.labcor.com.br/">www.labcor.com.br</a></div>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>