Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

transplantpost

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

theta

vector of parameter values of log tau, log lambda, and log p

data

data matrix with columns survival time, transplant indicator, time to transplant, and censoring indicator

Value

value of the log posterior

Author(s)

Jim Albert

Examples

data(stanfordheart)
theta=c(0,3,-1)
transplantpost(theta,stanfordheart)

LearnBayes

Functions for Learning Bayesian Inference

v2.15.1
GPL (>= 2)
Authors
Jim Albert
Initial release
2018-03-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.