total.degree.estimator | R Documentation |
estimate the total degree of the population network from sample degrees
total.degree.estimator(
survey.data,
d.hat.vals = "d",
weights = NULL,
missing = "ignore"
)
survey.data |
the dataframe with survey results |
d.hat.vals |
the name or index of the column that contains each respondent's estimated degree |
weights |
if not NULL, weights to use in computing the estimate. this should be the name of the column in the survey.data which has the variable with the appropriate weights. these weights should be construted so that, eg, the mean of the degrees is estimated as (1/n) * \sum_i w_i * d_i |
missing |
if "ignore", then proceed with the analysis without doing anything about missing values. if "complete.obs" then only use rows that have no missingness for the computations (listwise deletion). care must be taken in using this second option |
this computes the weighted sum of the respondents'
estimated degrees.
'
TODO – for now, it doesn't worry about missing values
OR about differences between the frame and the universe
the estimated total degree
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.