cvrcalc_gui: GUI for the cvrcalc package

Description Usage Details Examples

Description

A concise (1-5 lines) description of what the function does. cvrclac_gui() es una funci<f3>n que llama a un entorno

Usage

1

Details

If necessary, more details than the description above

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
##---- Should be DIRECTLY executable !! ----
##-- ==>  Define data, use random,
##--	or do  help(data=index)  for the standard data sets.

## The function is currently defined as
function () 
{
    modelos = c("Please, Select a model...", "Dorica", "Classic Framingham", 
        "Framingham-Wilson", "Regicor", "High Risk Score", "Low Risk Score")
    win = gwindow("CVR-CALC")
    group = ggroup(horizontal = FALSE, container = win)
    texto = glabel("A Cardiovascular Risk Calculator using estimation by Scores", 
        container = group, font.attr = list(style = "bold"))
    addSpring(group)
    addSpace(group, 15)
    modelo = gcombobox(modelos, container = group)
    addSpring(group)
    boton = gbutton("Run", container = group, handler = function(h, 
        ...) {
        eleccion = svalue(modelo)
        print(eleccion)
        if (eleccion == modelos[2]) 
            dorica()
        else if (eleccion == modelos[3]) 
            framingham_c()
        else if (eleccion == modelos[4]) 
            framingham_w()
        else if (eleccion == modelos[5]) 
            regicor()
        else if (eleccion == modelos[6]) 
            hrs()
        else if (eleccion == modelos[7]) 
            lrs()
        else print("Please, Select a model.")
    })
    mensaje_excel = "Please, Select the Excel file with the DATA to import..."
    mensaje_fin = "End of Process. Please, open de Excel file to view the results."
  }

cvrcalc documentation built on May 2, 2019, 4:10 p.m.