HB_to_counts: Execute function 'summarise_HB' on subsets (age classes and...

View source: R/HB_to_counts.R

HB_to_countsR Documentation

Execute function 'summarise_HB' on subsets (age classes and village) of a dataframe with data from interviews of 1 survey of human behavior (see MOIROUX et al. 2014) Also weight count for all age classes according to household census to compute predicted count in the whole population Also counts number of user outdoors and user indoors but not under net

Description

'HB_to_counts' returns hourly counts of individual humans in each compartiments (indoor, outdoors, under nets) from a data frame specifying (see MOIROUX et al. 2014)

Usage

HB_to_counts(data = data)

Arguments

data

a data frame of individual behavior data with the following fields (order doesnt matter): 'rcpcodevillage' village code (factor) 'rcpcodemenage' household code 'rcpnbrenfant1' nb of children (0-6y) in the household 'rcpnbrenfant2' nb of children (6-18y) in the household 'rcpnbradulte' nb of adults in the household 'rcptrcheage' individual age classes (factor) 'sexe' sexe of the individual (f or m) 'age' age in years of the individual 'dormirssmoust', did the individual used a mosquito net ? (value = "oui" or "non"), 'hintmaison', the hour the individual went indoors in the evening, in HH:MM:SS character format (for ex. "20:30:00") 'hsortiemaison', the hour the individual went outdoors in the morning 'hcoucher', the hour the individual went to sleep 'hlever', the hour the individual wake up

Value

a data frame of counts of individuals in various compartment per hours according to the age classes and the village (to be used for bite exposure calculation)

Examples

HB_to_counts(ODK_HB_R)

Nmoiroux/biteExp documentation built on June 9, 2025, 11:39 a.m.