freq_bool_by: Compute frequency of a set of logical variables by group...

View source: R/strata.R

freq_bool_byR Documentation

Compute frequency of a set of logical variables by group Adjusted frequency can be computed by providing a design object with computed weights

Description

Compute frequency of a set of logical variables by group Adjusted frequency can be computed by providing a design object with computed weights

Usage

freq_bool_by(data, vars, by, design = NULL)

Arguments

data

data.frame containing data

vars

list of variable names to compute frequency on. They must be logical

by

grouping variable

design

'svydesign' object, if provided will compute adjusted frequency using the design (data should contains the weight column as described in design)


cturbelin/ifnBase documentation built on Nov. 5, 2023, 12:54 p.m.