RDS.HCG.estimates: Homophily Configuration Graph Estimates

View source: R/rds-HCG.R

RDS.HCG.estimatesR Documentation

Homophily Configuration Graph Estimates

Description

This function computes the Homophily Configuration Graph type estimates for a categorical variable.

Usage

RDS.HCG.estimates(
  rds.data,
  outcome.variable,
  N = NULL,
  subset = NULL,
  small.fraction = FALSE,
  to.factor = FALSE,
  cont.breaks = 3
)

Arguments

rds.data

An rds.data.frame with recruitment time set.

outcome.variable

A string giving the name of the variable in the rds.data that contains a categorical variable to be analyzed.

N

Population size. If NULL, this value is taken to be the population.size.mid attribute of the data and if that is not set, no finite population correction is used.

subset

An optional criterion to subset rds.data by. It is an R expression which, when evaluated, subset the data. In plain English, it can be something like subset = seed > 0 to exclude seeds. It can also be the name of a logical vector of the same length of the outcome variable where TRUE means include it in the analysis. If NULL then no subsetting is done.

small.fraction

Should a small sample fraction be assumed

to.factor

force variable to be a factor

cont.breaks

If variable is numeric, how many discretization points should be used in the calculation of the weights.

Value

An object of class rds.weighted.estimate.

Author(s)

Ian E. Fellows

See Also

RDS.I.estimates, RDS.II.estimates, RDS.SS.estimates

Examples


data(fauxtime)
RDS.HCG.estimates(rds.data=fauxtime,outcome.variable='var1')

RDS documentation built on Oct. 21, 2026, 1:06 a.m.