pcapdir | R Documentation |
Weighted Sample Mean and Variance
pcapdir(data)
data |
the data must contain two or three columns : code, y, and weight data if exist. |
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) |
## load dataset with no weight value data(dataEB) pcapdir(dataEB[,-c(3)]) ##load dataset with weight value data(dataEB) pcapdir(dataEB)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.