Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

hcg.weights

homophily configuration graph weights


Description

homophily configuration graph weights

Usage

hcg.weights(
  rds.data,
  outcome.variable,
  N = NULL,
  small.fraction = FALSE,
  reltol = sqrt(.Machine$double.eps),
  max.optim = 500,
  theta.start = NULL,
  ...
)

Arguments

rds.data

An rds.data.frame

outcome.variable

The variable used to base the weights on.

N

Population size

small.fraction

should a small sample fraction be assumed

reltol

Relative convergence tolerance for the HCG estimator. The algorithm stops if it is unable to reduce the log-likelihood by a factor of reltol * (abs(log-likelihood) + reltol) at a step. Defaults to sqrt(.Machine$double.eps), typically about 1e-8.

max.optim

The number of iterations on the likelihood optimization for the HCG estimator.

theta.start

The initial value of theta used in the likelihood optimization for the HCG estimator. If NULL, the default, it is the margin of the table of counts for the transitions.

...

Unused

Examples

data(fauxtime)
hcg.weights(fauxtime,"var1",N=3000)
fauxtime$NETWORK[c(1,100,40,82,77)] <- NA

RDS

Respondent-Driven Sampling

v0.9-3
LGPL-2.1
Authors
Mark S. Handcock [aut, cre], Krista J. Gile [aut], Ian E. Fellows [aut], W. Whipple Neely [aut]
Initial release
2021-03-11

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.