Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

NPS (version 1.1)

nps.test: Significance tests and confidence intervals for Net Promoter Scores

Description

This function performs one and two sample tests for the Net Promoter score(s) of Recommend data distributions. Currently, only a Wald type test is supported.

Usage

nps.test(x, y = NULL, test = "wald", conf = 0.95, breaks = list(0:6, 7:8, 9:10))
"print"(x, ...)

Arguments

x
A vector of Recommend scores
y
A vector of Recommend scores, to compare to x. If not specified, a one sample test on x is performed. Defaults to NULL
test
The type of test to perform. Currently only the Wald/Z-test ('wald') is supported
conf
the confidence level of the test and intervals. Defaults to 0.95
breaks
A list of length three, giving the integer Likert scale points for Detractors, Passives, and Promoters, respectively. The default is list(0:6, 7:8, 9:10)
...
Not used.

Value

A list of class nps.test containing:
nps.x, nps.y
The Net Promoter score(s)
delta
Where both x and y have been specified, the absolute difference between the two scores
int
The confidence interval generated. For a one sample test, this will be a confidence interval around nps.x. For a two sample test, this will be a confidence interval around the difference between nps.x and nps.y
conf
The confidence level used when performing the test, as specificed by conf in the function parameters
p.value
The p value of the significance test
sig
logical. Whether or not the p.value of the test exceeded 1-conf
se.hat
The estimated standard error of delta for a two sample test, otherwise of x
type
character string indicating whether a one or two sample test was performed
n.x, n.y
Counts for x and y
NULL

See Also

nps.var, nps.se, nps