Returns a diagnostic message and the margin of error.

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)