absolute.risk: Estimate absolute risks

Description Usage Arguments Details Value See Also Examples

View source: R/absolute.risk.R

Description

A function to estimate absolute risks of developing breast cancer

Usage

1
absolute.risk(data, Raw_Ind=1, Avg_White=0)

Arguments

data

A data set containing all the required input data needed to perform risk projections, such as initial age, projection age, BrCa relative risk covariates and race. See exampledata for details.

Raw_Ind

The raw file indicator with default value 1. Raw_Ind=1 means RR covariates are in raw/original format. Raw_Ind=0 means RR covariates have already been re-coded to 0, 1, 2 or 3.

Avg_White

Calculation indicator. Avg_White=0, calculate absolute risks; Avg_White=1, calculate average absolute risks based on the rates for average non-hispanic white women and average other (native american) women. The default value is 0.

Details

For the projection of absolute risks, this function is defined based on Gail Model. Parameters and constants needed in this function include initial and projection age, recoded covariates from function recode.check, relative risks of BrCa at age "<50" and ">=50" from function relative.risk as well as other known constants like BrCa composite incidences, competing hazards, 1-attributable risk using in NCI BrCa Risk Assessment Tool (NCI BCRAT).

Value

A vector which returns absolute risk values when Avg_White=0 or average absolute risk values when Avg_White=1.

See Also

recode.check, relative.risk

Examples

1
2
3
4
5
6
data(exampledata)
# calculate absolute risk
absolute.risk(exampledata)
# calculate average absolute risk
Avg_White <- 1
absolute.risk(exampledata, Raw_Ind=1, Avg_White)

Example output

 [1]        NA        NA        NA 2.1080846 4.4412945 3.9762447 1.2495505
 [8] 5.7756759        NA 3.9060631        NA        NA        NA        NA
[15]        NA 2.6899040 0.6789145 1.0229802        NA        NA 8.8276689
[22] 6.7678480        NA        NA        NA        NA
 [1]        NA        NA        NA 2.1080846 4.4412945 3.9762447 1.2495505
 [8] 5.7756759        NA 3.9060631        NA        NA        NA        NA
[15]        NA 2.6899040 0.6789145 1.0229802        NA        NA 8.8276689
[22] 6.7678480        NA        NA        NA        NA

BCRA documentation built on July 10, 2020, 5:09 p.m.