Learn R Programming

GLDEX (version 2.0.0.9.3)

fun.minmax.check.gld: Check whether the specified GLDs cover the minimum and the maximum values in a dataset

Description

This function checks the lowest and highest quantiles of the specified GLDs against the specified dataset

Usage

fun.minmax.check.gld(data, lambdas, param, lessequalmin = 1, 
greaterequalmax = 1)

Value

A vector of logical values indicating whether the specified data the specified GLDs cover the minimum and the maximum values in a dataset

Arguments

data

A vector of numerical dataset

lambdas

A matrix of four columns representing lambda 1 to lambda 4 of the GLD

param

Can be "rs", "fkml" or "fmkl"

lessequalmin

Can be 0 or 1

greaterequalmax

Can be 0 or 1

Author

Steve Su

Details

lessequalmin==1 means the lowest value of GLD <= minimum value of data lessequalmin==0 means the lowest value of GLD < minimum value of data greaterequalmin==1 means the highest value of GLD >= maximum value of data greaterequalmin==0 means the highest value of GLD > maximum value of data

Examples

Run this code
fun.minmax.check.gld(runif(100,.9,1),matrix(1:12,ncol=4),param="rs",0,0)
fun.minmax.check.gld(runif(100,.98,1),matrix(1:12,ncol=4),param="fkml",1,1)

Run the code above in your browser using DataLab