Description Usage Arguments Details Value See Also Examples
View source: R/absolute.risk.R
A function to estimate absolute risks of developing breast cancer
1 | absolute.risk(data, Raw_Ind=1, Avg_White=0)
|
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 |
Raw_Ind |
The raw file indicator with default value 1.
|
Avg_White |
Calculation indicator.
|
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).
A vector which returns absolute risk values when Avg_White=0 or average absolute risk values when Avg_White=1.
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)
|
[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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.