get.risk: Calculate the proportion of vector elements above a threshold...

View source: R/IRSfunctions.R

get.riskR Documentation

Calculate the proportion of vector elements above a threshold (or below or any other operator) to estimate risk.

Description

get.risk returns the proportion of vector values below or above a threshold.

Usage

get.risk(vec, thres, op = ">", na.rm = FALSE)

Arguments

vec

vector

thres

treshold value

na.rm

a logical value indicating whether NA values should be stripped before the computation proceeds.

Value

Vector of interpolated values


fronzek/IRSanalysis documentation built on Jan. 28, 2023, 2:38 a.m.