View source: R/regressionTools.R
weightsVector | R Documentation |
generates vector of weighted values
weightsVector(weight = NULL, wvalues, infiniteValue = NA)
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 |
a vector of weighted values (or NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.