weibullregpost {LearnBayes} | R Documentation |
Computes the log posterior density of (log sigma, mu, beta) for a Weibull proportional odds regression model
weibullregpost(theta,data)
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 |
vector of values of the log posterior where each value corresponds to each row of the parameters in theta
Jim Albert
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)