Author: Camila Garcia-Echeverri
Date: 2020-07-09

# Examples GSA.UN

#### Camila Garcia-Echeverri

#### 2020-07-09

## Bstat

`Bstat` is the function responsible for calculating the basic statistical measures of a mathematical model results

    library(GSA.UN)
    library(stats)
    library(e1071)

    data("out_set")

    data_Bstat <- Bstat(out_set)

## Cond_Moments

    library(GSA.UN)
    library(stats)
    library(e1071)

    data("parameters_set", "out_set", "pp_names")

    CM <- Cond_Moments(parameters_set, out_set, pp_names, steps=15)

## SOBOL

    library(GSA.UN)
    library(stats)

    data("data_Bstat", "CM", "pp_names")

    SOBOL_indices <- SOBOL(data_Bstat[,3], CM$CM_mean, CM$CM_var , pp_names)

## AMA

    library(GSA.UN)

    data("data_Bstat", "CM", "pp_names")

    AMA_indices <- AMA(data_Bstat, CM, pp_names, steps= 15)

## GSAtool

    library(GSA.UN)
    library(stats)
    library(e1071)

    data("parameters_set", "out_set", "pp_names")

    GSA_results <- GSAtool(parameters_set, out_set, pp_names, steps = 15, save=FALSE)