[R] making a multiple censored Surv object to survival analisys

2007-06-03 Thread Jose Bustos Melo
Hi R-survivals, 
   
  I looking for a way to make a Surv object, with a multiple censored data. I'm 
trying with data from KMsurv library. The data lung is a good reference, to 
make this.
   
  I have this senteces,
   
  library(KMsurv)
  library(survival)
  data(lung)
  names(lung) ##"time"   "death"  "time2"  "death2", there is the variables
  ### I'm trygin with this sentence, but i don't know how works the Surv 
function ### with multiple censored data
  with(lung, Surv(time,death, time2, death2))

   
  someone can help me with this?
   
  I hope you help!
  Jose

   
-

¡Descubre una nueva forma de obtener respuestas a tus preguntas!


[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] making a counter of consecitive positive cases in time series

2007-04-12 Thread Jose Bustos Melo
Hi all..RCounters!
   
  I´m working with standarized time series, and i need make a counter of 
consecutives positves numbers to  make a cumulative experimental funtion. I 
have x: the time series (0,1) and y: my counter, i have this for step. What is 
wrong?.. any can help me please!
   
  x<-rbinom(15,1,.3)
  y<-NULL;s<-0
  for (i in 1: length (x))
  {if (x[i]>0)
  {s<-s+x[i]
  s=0}
  else
  y<-c(y,s)}
  y
  x
   
   
  Thk u all!
  José Bustos
   
   

   
-




[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] maybe use voronoi.findrejectsites?

2006-10-03 Thread Jose Bustos Melo
hi all members,

please, i need you help... now a i´m working with veronoi polygons in a
area with projections, but i need cut the polygons left. On other words, i
need cut the polygons in the worked area.

R help say that use the command voronoi.findrejectsites, but in this
command i need put the numbers, any way...this command not cut!!  do you
can help me?

Thank you for help me!
José Bustos
Master Stat Program
Universidad de Concepción
Chile

[EMAIL PROTECTED], [EMAIL PROTECTED]
  
 


-




[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] maybe use voronoi.findrejectsites?

2006-10-03 Thread Jose Bustos Melo
hi all members,

please, i need you help... now a i´m working with veronoi polygons in a
area with projections, but i need cut the polygons left. On other words, i
need cut the polygons in the worked area.

R help say that use the command voronoi.findrejectsites, but in this
command i need put the numbers, any way...this command not cut!!  do you
can help me?

Thank you for help me!
José Bustos
Master Stat Program
Universidad de Concepción
Chile

[EMAIL PROTECTED], [EMAIL PROTECTED]
  
 


-




[[alternative HTML version deleted]]

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.