Skip to contents

This function calculates the lifetime risk of a specific type of cancer based on genetic and demographic factors using data in the format of the PanelPRO Database.

Usage

calculate_lifetime_risk(cancer_type, gene, race, sex, type, db)

Arguments

cancer_type

The type of cancer for which the risk is being calculated.

gene

The gene of interest for which the risk is being calculated.

race

The race of the individual.

sex

The sex of the individual, Female or Male.

type

The type of penetrance calculation, Net or Crude.

db

The dataset used for the calculation.

Value

A list containing the cumulative risk (cumulative_risk) and the total probability (total_prob) of developing the specified cancer.