Compute weighted kurtosis using Weighted.Desc.Stat::w.kurtosis but add an option to remove NA values

wtd_kurtosis(x, w, na.rm = TRUE)

Arguments

x

values whose weighted mean is to be computed

w

weights of the same length as x to be used against x

na.rm

a logical values indicating whether NA values in both x and w should be stripped before computation