# Compare weighted and unweighted result
X=1:10
W=1:10
AF(X)
AF(X,W)
data(Well_being)
# Allison and Foster index for health assessment with sample weights
X=Well_being$V11
W=Well_being$Weight
AF(X,W)
Run the code above in your browser using DataLab