plot_penetrance: Plot Weibull Distribution with Credible Intervals

View source: R/outputHelpers.R

plot_penetranceR Documentation

Plot Weibull Distribution with Credible Intervals

Description

This function plots the Weibull distribution with credible intervals for the given MCMC results. It allows for visualization of penetrance curves based on the posterior samples.

Usage

plot_penetrance(combined_chains, prob, max_age, sex = "NA")

Arguments

combined_chains

List of combined MCMC chain results containing posterior samples for penetrance parameters.

prob

Numeric, probability level for confidence intervals (between 0 and 1).

max_age

Integer, maximum age to plot.

sex

Character, one of "Male", "Female", or "NA" for non-sex-specific. Default is "NA".

Value

A plot showing the Weibull distribution with credible intervals.


penetrance documentation built on April 4, 2025, 12:29 a.m.