relative.risk: Estimate relative risks

Description Usage Arguments Details Value See Also Examples

View source: R/relative.risk.R

Description

A function to estimate relative risks for risk factor combinations

Usage

1
relative.risk(data, Raw_Ind=1)

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.

Details

The age is dichotomized as "age less than 50 years" and "age 50 years or more". The relative risks can be obtained from Gail Model, an unconditional logistic regression that included main effects NB_Cat, AM_Cat, AF_Cat, NR_Cat as well as interactions between AF_Cat and NR_Cat and between the age category and NR_Cat.

Value

RR_Star1

Relative risk for woman of interest at ages < 50.

RR_Star2

Relative risk for woman of interest at ages >= 50.

PatternNumber

The sequence number of risk patterns. There are 3 levels for NB_Cat, 3 for AM_Cat, 4 for AF_Cat, 3 for NR_Cat, 3*3*4*3 = 108 patterns in total. Pattern Number=NB_Cat*3*3*4+AM_Cat*3*4+AF_Cat*3+NR_Cat*1+1.

See Also

recode.check

Examples

1
2

Example output

   RR_Star1 RR_Star2 PatternNumber
1        NA       NA            29
2        NA       NA            NA
3        NA       NA            NA
4  3.235354 3.235354            29
5  5.492604 4.117968            65
6  4.426313 3.318538            38
7  2.207490 2.207490             2
8  6.981955 6.981955            38
9        NA       NA            NA
10 3.567702 3.567702            38
11       NA       NA            NA
12       NA       NA            NA
13       NA       NA            29
14       NA       NA            NA
15       NA       NA            NA
16 2.345782 2.097356            50
17 5.385991 3.027437           103
18 5.385991 3.027437           103
19       NA       NA            NA
20       NA       NA            NA
21 1.421020 1.421020            16
22 1.421020 1.421020            16
23       NA       NA            NA
24 1.421020 1.421020            16
25 1.421020 1.421020            16
26       NA       NA            16

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