Purpose

This folder contains R scripts used to reproduce Figures 1-5 in the manuscript.

fig1.R — generates Figure 1

fig2.R — generates Figure 2

fig3.R - generates Figure 3

figs4&5.R - generate Figures 4-5

croc.R - a collection of R functions implementing the proposed method in the manuscript. These functions were subsequently further developed and are now available through the varoc R package.

The scripts require a standard R installation (R ≥ 4.5.0 recommended).

The following packages used for these R functions.

MASS

LaplacesDemon

pROC

plot3D

bmixture

Install missing packages with:

install.packages(c("MASS", "LaplacesDemon", "pROC", "plot3D", "bmixture"))
