postpendist | R Documentation |
Plots the normalized approximate postrior of the penalty parameter based
on a an object of class lpsmc
.
postpendist(x, low, up, themetype = c("classic", "gray", "light", "dark"))
x |
An object of class |
low |
The lower bound on the x-axis (in log scale). |
up |
The upper bound on the x-axis (in log scale). |
themetype |
The theme, either "classic", "gray", "light" or "dark". |
Oswaldo Gressani oswaldo_gressani@hotmail.fr .
### Posterior penalty distribution for breast cancer dataset
rm(list=ls())
data("breastcancer")
formula <- Surv(tobs, delta) ~ inci(AGE + ER) + late(AGE + ER)
fitcancer <- lpsmc(formula = formula, data = breastcancer, K = 20,
stepsize = 0.1)
postpendist(fitcancer, 5, 12, themetype = "gray")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.