Description Usage Arguments Details Value Technical note TODO
use an aggregate multiplicity estimator and the respondents' own network size estimates to estimate hidden population sizes
1 2 3 4 5 6 7 | network.survival.estimator_(resp.data, attribute.data, attribute.names,
known.populations, total.kp.size = 1, weights, attribute.weights,
dropmiss = NULL, verbose = TRUE)
network.survival.estimator(resp.data, attribute.data, attribute.names,
known.populations, total.kp.size = 1, weights, attribute.weights,
verbose = TRUE)
|
resp.data |
the dataframe that has a row for each respondent, with reported
connections to the groups of known size, as well as the attributes.
Note that the column names of the attributes should match
their names in |
attribute.data |
A dataframe with the reported attributes of hidden population members reported by survey respondents. There should be one row for each time a respondent reports a hidden population member. For example, to estimate death rates, there should be one row for each report of a death. |
attribute.names |
the names of the columns of attribute.data and resp.data that contain the attribute information. |
known.populations |
the names of the columns in |
total.kp.size |
the size of the probe alters, i.e., the sum of the known population sizes |
weights |
the weights or weights column for the respondent data |
attribute.weights |
the weights or weights column for the alter data |
dropmiss |
see |
verbose |
if TRUE, print information to screen |
This function takes two sources of data as input: first, it requires a long-form dataframe with the attributes of the reported members of the hidden population. For example, if we are asking about emigres and we collect the age and sex of each reported emigrant, then the long form dataset might look like:
age | sex | weight |
15 | m | 2.10 |
58 | f | 1.15 |
33 | m | 3.67 |
The second source of data we need is the known population responses for the respondents, along with the *same* attributes for each respondent. For example, in the situation above, we would also require a dataset like this to be passed in
age | sex | weight | hm.teachers | hm.nurses | ... |
20 | f | 2.10 | 4 | 0 | ... |
44 | m | 1.65 | 0 | 2 | ... |
60 | m | 2.75 | 1 | 1 | ... |
the network reporting estimate of the hidden population's size
(as a prevalence) broken down by the categories defined by all combinations
of attribute.names
.
This function assumes that the sampling weights are standard analysis weights and *not* relative weights. Standard analysis weights should provide an estimate for the size of the frame population when added up; relative weights, on the other hand, will sum to the number of respondents in the sample. Demographic and Health surveys typically have relative weights, which must be converted into standard sampling weights before using this function.
handle missing values
think about whether or not this is the best way to handle N.F
write more general agg mult est fn and call that
make unit tests
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.