This function returns a list with following objects :
direst
an information about direct estimatior in each area
pcap
pcap (the weighted sample mean), vardir (the weighted sample variance),yt (the total number of the "success" category from each area), and nt (the total number of sample from each area)
Arguments
data
the data must contain two or three columns : code, y, and weight data if exist.