importance_weights: Importance weights

View source: R/case-weights.R

importance_weightsR Documentation

Importance weights

Description

[Experimental]

importance_weights() creates a vector of importance weights which allow you to apply a context dependent weight to your observations. Importance weights are supplied as a non-negative double vector, where fractional values are allowed.

Usage

importance_weights(x)

Arguments

x

A double vector.

Value

A new importance weights vector.

See Also

frequency_weights()

Examples

importance_weights(c(1.5, 2.3, 10))

hardhat documentation built on June 30, 2022, 5:05 p.m.