weightsVector: generates vector of weighted values

View source: R/regressionTools.R

weightsVectorR Documentation

generates vector of weighted values

Description

generates vector of weighted values

Usage

weightsVector(weight = NULL, wvalues, infiniteValue = NA)

Arguments

weight

default = NULL, no weights, function will simply return NULL otherwsie it will return a weighted version of wvalues according to the formula: 1/wvalues^weight . No other transformation of wvalues possible

wvalues

a vector (numeric/integer/...) of values to be weighted

infiniteValue

infinite values can give problems with some plot or calculations, default is set to NA. Set to NULL if no conversion is needed

Value

a vector of weighted values (or NULL)


BenBruyneel/BBPersonalR documentation built on Aug. 23, 2024, 8:28 p.m.