mlsp: Return a rounded marginal

Description Usage Arguments Value Examples

View source: R/returnPCT.R

Description

mlsp returns an integer value for a marginal. It's the percent of valid respondents giving the specified response.

Usage

1
mlsp(mulaw, variable, response, weight = zwave_weight)

Arguments

mulaw

The data.frame containing the version of the integrated file you wish to use

variable

The unquoted variable name

response

The desired response. It can be either numeric or the value label.

weight

The weighting variable, defaults to zwave_weight

Value

A dataframe.

Examples

1
2
mlsp(mulaw = df, variable = g40, response = 1)
mlsp(mulaw = df, variable = g40, response = "approve")

jdjohn215/MLSPTools documentation built on Sept. 2, 2020, 1:16 a.m.