Learn R Programming

modi (version 0.1.0)

weightsum: Utility function for TRC.R among others

Description

Sum of weights for observations < value (if lt = TRUE) or observations=value (if lt = FALSE).

Usage

weightsum(observations, weights, value, lt = TRUE)

Arguments

observations

vector of observations.

weights

vector of weights.

value

value.

lt

either TRUE or FALSE.

Author

Beat Hulliger