ttest_nps: Performs a t-test on NPS

View source: R/ttest_nps.R

ttest_npsR Documentation

Performs a t-test on NPS

Description

Returns a diagnostic message and the margin of error.

Usage

ttest_nps(x, conf_level = 0.95)

Arguments

x

NPS vector to be passed through. Use surveytoolbox::as_nps to convert a 11-point scale into a NPS vector.

conf_level

Numeric value to specify the confidence level. Defaults to 0.95.

Examples

x <- sample(0:10, 1000, replace = TRUE)
nps_x <- surveytoolbox::as_nps(x)

martinctc/surveytools documentation built on Nov. 21, 2024, 10:48 p.m.