wtd.mode: Find Mode of Variable
Description
Takes in variable and finds mode, works with sampling weights
Usage
wtd.mode(x, weights = NULL)
Arguments
weights
Sampling weights of variable (optional)
Value
Returns the modal value of the variable
Details
Makes use of the freq function, part of the descr package