File: transplantpost.Rd

package info (click to toggle)
r-cran-learnbayes 2.15-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 2,064 kB
  • sloc: sh: 16; makefile: 1
file content (29 lines) | stat: -rw-r--r-- 666 bytes parent folder | download | duplicates (4)
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
\name{transplantpost}
\alias{transplantpost}
\title{Log posterior of a Pareto model for survival data}
\description{
 Computes the log posterior density of (log tau, log lambda, log p)  for a Pareto
model for survival data
}
\usage{
transplantpost(theta,data)
}
\arguments{
  \item{theta}{vector of parameter values of log tau, log lambda, and log p}
  \item{data}{data matrix with columns survival time, transplant indicator, time to transplant, and
censoring indicator}
}

\value{
value of the log posterior
}

\author{Jim Albert}

\examples{
data(stanfordheart)
theta=c(0,3,-1)
transplantpost(theta,stanfordheart)
}

\keyword{models}