View source: R/known_population.r
kp.individual.estimator | R Documentation |
In most situations, the known population method will be
used to estimate the average personal network size;
this can be done with kp.estimator_
. If, instead, you wish
to estimate the personal network size of each individual
respondent, then you can use this function.
kp.individual.estimator(
resp.data,
known.populations,
total.kp.size = 1,
alter.popn.size,
dropmiss = FALSE
)
kp.individual.estimator_(
resp.data,
known.populations,
total.kp.size = 1,
alter.popn.size,
dropmiss = FALSE
)
resp.data |
the respondent (survey) data |
known.populations |
the names of the known populations |
total.kp.size |
the sum of the sizes of all of the known populations |
alter.popn.size |
the size of the population respondents
are reporting about connections to; typically this will
be the frame population, so |
dropmiss |
see the dropmiss argument of |
Note that this is not making inference about any larger population; it estimates a property of each individual respondent. So the sampling weights are not used here.
a data frame with an estimate of each individual respondent's personal network size
make unit tests
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.