quant_groups_svy {dvmisc}R Documentation

Split Continuous Variable into Quantile Groups (Survey Version)

Description

Complex survey version of quant_groups. Speeds up process of creating quantile groups based on survey weighted percentiles.

Usage

quant_groups_svy(x, by = NULL, groups = 4, probs = NULL, design)

Arguments

x

Formula, e.g. ~varname.

by

Formula, e.g. ~varname.

groups

Numeric value specifying number of quantile groups.

probs

Numeric vector.

design

A svydesign or svrepdesign object.

Value

Factor variable.


[Package dvmisc version 1.1.4 Index]