out_house_structure: Generating household structure

View source: R/functions_auxiliary.R

out_house_structureR Documentation

Generating household structure

Description

Define a house structure vector that describes the population in each household, which is useful in the clustered interference. In this running example, houses refer to clusters and kids refer to experimental units.

Usage

out_house_structure(N = 900, K = N/3, equal = T)

Arguments

N

The number of observations (kids)

K

The number of households

equal

A binary parameter that determines the exact house structure. If equal=TRUE, every household has equal number of kids. If equal=FALSE, every household samples the number of kids at random. But in each household, there would be at least two and at most (2*N/K)-2 kids. Hence, on average there would be N/K kids per household.

Value

A vector of length K that gives the number of kids in each household.


dpuelz/CliqueRT documentation built on Jan. 6, 2023, 11:20 p.m.