handle_weights {plasso} | R Documentation |
Sanitizes potential sample weights
Description
handle_weights
cleans potential sample weights or codes them as ones if they are not specified.
Usage
handle_weights(w, n)
Arguments
w |
Vector or n x 1 matrix of weights or null if no weights provided |
n |
Number of observations |
Value
Vector of weights.
[Package plasso version 0.1.2 Index]