Learn R Programming

mariposa (version 0.7.3)

summary.multiple_response: Summary method for multiple response results

Description

Creates a summary object that produces the detailed SPSS-style MULT RESPONSE output when printed: the frequencies table (percent of responses and of cases) and, when by was given, the crosstab with case-based column percentages.

Usage

# S3 method for multiple_response
summary(object, frequencies = TRUE, crosstab = TRUE, digits = 1, ...)

Value

A summary.multiple_response object.

Arguments

object

A multiple_response result object.

frequencies

Logical. Show the frequencies table? (Default: TRUE)

crosstab

Logical. Show the by-crosstab (when by was given)? (Default: TRUE)

digits

Number of decimal places for percentages (Default: 1).

...

Additional arguments (not used).

See Also

multiple_response for the main analysis function.

Examples

Run this code
d <- survey_data
d$gov <- as.integer(d$trust_government >= 4)
d$media <- as.integer(d$trust_media >= 4)
summary(multiple_response(d, gov, media))

Run the code above in your browser using DataLab