weibullregpost {LearnBayes}R Documentation

Log posterior of a Weibull proportional odds model for survival data

Description

Computes the log posterior density of (log sigma, mu, beta) for a Weibull proportional odds regression model

Usage

weibullregpost(theta,data)

Arguments

theta matrix of parameter values where each row represents a value of (log sigma, mu, beta)
data data matrix with columns survival time, censoring variable, and covariate matrix

Value

vector of values of the log posterior where each value corresponds to each row of the parameters in theta

Author(s)

Jim Albert

Examples

data(chemotherapy)
attach(chemotherapy)
d=cbind(time,status,treat-1,age)
par1=c(-.6,11,.6,0)
par2=c(-.6,11,.6,.1)
theta=rbind(par1,par2)
weibullregpost(theta,d)

[Package LearnBayes version 1.0 Index]