postpendist: Plot the normalized approximate posterior of the penalty...

View source: R/postpendist.R

postpendistR Documentation

Plot the normalized approximate posterior of the penalty parameter.

Description

Plots the normalized approximate postrior of the penalty parameter based on a an object of class lpsmc.

Usage

postpendist(x, low, up, themetype = c("classic", "gray", "light", "dark"))

Arguments

x

An object of class lpsmc.

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".

Author(s)

Oswaldo Gressani oswaldo_gressani@hotmail.fr .

Examples

### 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")


oswaldogressani/mixcurelps documentation built on Oct. 30, 2024, 10:45 p.m.