File: expprep2.Rd

package info (click to toggle)
r-cran-relsurv 2.3-2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 916 kB
  • sloc: ansic: 1,223; cpp: 138; makefile: 2
file content (57 lines) | stat: -rw-r--r-- 1,273 bytes parent folder | download
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/Rcode.r
\name{expprep2}
\alias{expprep2}
\title{expprep2 function}
\usage{
expprep2(
  x,
  y,
  ratetable,
  status,
  times,
  fast = FALSE,
  ys,
  prec,
  cmp = F,
  netweiDM = FALSE
)
}
\arguments{
\item{x}{matrix of demographic covariates - each individual has one line}

\item{y}{follow-up time for each individual (same length as nrow(x))}

\item{ratetable}{rate table used for calculation}

\item{status}{status for each individual (same length as nrow(x)!), not
needed if we only need Spi, status needed for rs.surv}

\item{times}{times at which we wish to evaluate the quantities, not needed
if we only need Spi, times needed for rs.surv}

\item{fast}{for mpp method only}

\item{ys}{entry times (if empty, individuals are followed from time 0)}

\item{prec}{deprecated}

\item{cmp}{should cmpfast.C be used}

\item{netweiDM}{should new netwei script be used}
}
\value{
List containing the calculated hazards and probabilities using the
population mortality tables.
}
\description{
Helper calculation function using C code. Saved also as exp_prep (unexported
function).
}
\details{
Helper function used in rs.surv and other relsurv functions.
}
\seealso{
rs.surv
}
\keyword{survival}