mrset: Create multiple response set/multiple dichotomy set from...

Description Usage Arguments Value See Also Examples

Description

These functions are intended for usage with tables - tables, cro, cro_fun. Result of mrset is considered as muliple-response set with category encoding and result of mdset is considered as multiple response set with dichotomy (dummy) encoding e. g. with 0 or 1 in the each column. Each column in the dichotomy is indicator of absence or presence of particular feature. Both functions don't convert its arguments to anything - it is supposed that arguments already have appropriate encoding. For conversation see as.dichotomy or as.category.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
mrset(..., label = NULL)

mdset(..., label = NULL)

mrset_f(..., label = NULL)

mdset_f(..., label = NULL)

mrset_p(..., label = NULL)

mdset_p(..., label = NULL)

mrset_t(..., label = NULL)

mdset_t(..., label = NULL)

Arguments

...

variables

label

character optional label for multiple response set

Value

data.frame of class category/dichotomy

See Also

as.dichotomy, as.category

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
data(product_test)

calc_cro_cpct(product_test, mrset(a1_1 %to% a1_6))

# same result
calc_cro_cpct(product_test, mrset_f(a1_))

# same result
calc_cro_cpct(product_test, mrset_p("a1_"))

# same result
calc_cro_cpct(product_test, mrset_t("a1_{1:6}"))

gdemin/expss documentation built on May 16, 2019, 11:14 p.m.