risk.summary: List the records with relative risks and absolute risks

Description Usage Arguments Value See Also Examples

View source: R/risk.summary.R

Description

A function to list all the records with relative risks and absolute risks.

Usage

1
risk.summary(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.

Value

A data frame that includes age, duration of the projection time interval, covariates and the projected risk. A CSV file is created to save the data frame under user's working directory for reading convenience.

See Also

relative.risk, absolute.risk

Examples

1
2

Example output

   ID   T1   T2 Proj_Intvl N_Biop HypPlas AgeMen Age1st N_Rels Race CharRace
1   1 45.2 53.3        8.1     99      99     10     20      1    0       ??
2   2 45.2 53.3        8.1     99       1     10     20      1    1       Wh
3   3 45.2 53.3        8.1     99       0     10     20      1    2       AA
4   4 45.2 53.3        8.1      0      99     10     20      1    3       Hi
5   5 45.2 53.3        8.1      1      99     10     20      1    4       NA
6   6 45.2 53.3        8.1      1      99     14     19      1    5       Wo
7   7 45.2 53.3        8.1     99      99     99     19      1    6       Ch
8   8 45.2 53.3        8.1      1       1     14     19      1    7       Ja
9   9 45.2 53.3        8.1     99       1     14     99      1    8       Fi
10 10 45.2 53.3        8.1      1       0     14     19      1    9       Hw
11 11 45.2 53.3        8.1     99       0     99     99      1   10       oP
12 12 45.2 53.3        8.1      0       0     14     19      1   11       oA
13 13 45.2 53.3        8.1      0      99     10     20      1   12       ??
14 14 45.2 53.3        8.1      0       1     10     20      1    0       ??
15 15 45.2 53.3        8.1      0       0     10     20      1    1       Wh
16 16 45.2 53.3        8.1      1       0     10     20      1    2       AA
17 17   35   40          5      4      99     11     25      0    3       Hi
18 18   35   40          5      4      99     11     98      0    4       NA
19 19   35   40          5      4      99     11     10      0    5       Wo
20 20   35   40          5      4      99     36     25      0    6       Ch
21 21   27   90         63     99      99     13     22      0    7       Ja
22 22   27   90         63     99      99     13     22     99    8       Fi
23 23   18   26          8     99      99     13     22     99    9       Hw
24 24   27   26         -1     99      99     13     22     99   10       oP
25 25   85   91          6     99      99     13     22     99   11       oA
26 26   86   90          4     99      99     13     22     99   12       ??
             AbsRisk
1               <NA>
2               <NA>
3               <NA>
4   2.10808457698158
5   4.44129446296421
6   3.97624470498605
7     1.249550474885
8   5.77567590434044
9               <NA>
10  3.90606305710754
11              <NA>
12              <NA>
13              <NA>
14              <NA>
15              <NA>
16  2.68990404389925
17 0.678914509377765
18  1.02298019251626
19              <NA>
20              <NA>
21  8.82766887411449
22  6.76784804053789
23              <NA>
24              <NA>
25              <NA>
26              <NA>

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