powered by
handle_weights cleans potential sample weights or codes them as ones if they are not specified.
handle_weights
handle_weights(w, n)
Vector of weights.
Vector or n x 1 matrix of weights or null if no weights provided
Number of observations