Using appropriate sample weights