File: rbind.Surv.Rd

package info (click to toggle)
r-cran-lava 1.7.2.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 2,636 kB
  • sloc: sh: 13; makefile: 2
file content (34 lines) | stat: -rw-r--r-- 621 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/rbind.Surv.R
\name{rbind.Surv}
\alias{rbind.Surv}
\title{Appending \code{Surv} objects}
\usage{
\method{rbind}{Surv}(...)
}
\arguments{
\item{...}{\code{Surv} objects}
}
\value{
\code{Surv} object
}
\description{
\code{rbind} method for \code{Surv} objects
}
\examples{

y <- yl <- yr <- rnorm(10)
yl[1:5] <- NA; yr[6:10] <- NA
S1 <- survival::Surv(yl,yr,type="interval2")
S2 <- survival::Surv(y,y>0,type="right")
S3 <- survival::Surv(y,y<0,type="left")

rbind(S1,S1)
rbind(S2,S2)
rbind(S3,S3)

}
\author{
Klaus K. Holst
}
\keyword{utilities}